Better music player [CC: T] CC: Tweaked Minecraft Game

Part of code use: music link to DFPWM API interface

Installation method: wget http://fserver.liulikeji.top:15848/installer/speaker.lua


Original function:

Play dfpwm file: Speaker Play (file name)

Play DFPWM music link: Speaker Paly (url)

End play: Speaker Stop


New function:

Multi -speakers are adapted and have no audio without synchronization, which means that you can put a bunch of speakers and use it at the same time

Play mp3 music link: Speaker Play (url) MP3

Play progress bar and information display:

Play progress bar in the first behavior, the number of playback segments of the second act, the total number of playbacks of the third act, the percentage of the 4th behavior playback progress


Advanced function:

The program sets some global parameters, which can be controlled by accessing these parameters

 _ g.getplay-Get the percentage of playback progress: Print (_g.getplay)

_G.setplay-Set the progress of playback (0-100) usage: _g.setplay = 50

_G.playopen-Play stop use: _g.playopen = false

_G.PlayStop-Paramount Play (True pause, false recovery): _g.playStop = TRUE

_G.PlayPrint-Player information output (True open, false off) usage: _g.playPrint = false