This repository was archived by the owner on Oct 19, 2022. It is now read-only.
Note
There may be tons of bug in the module, if you found it please report to issue tracker
Improvements
- Optimized PyAV music sources stream.
- Optimized pydub equalizer.
Fix bugs
- Fixed All of miniaudio music sources malfunctioning when decoding, for more information about what sources are affected see below:
MP3toPCMAudio.from_file()MP3toPCMAudio.from_data()FLACtoPCMAudio.from_file()FLACtoPCMAudio.from_data()VorbistoPCMAudio.from_file()VorbistoPCMAudio.from_data()WAVtoPCMAudio.from_file()WAVtoPCMAudio.from_data()
- Fixed
LibAVOpusAudio.seek()error caused by unconverted floating numbers. - Fixed a deadlock when stopping audio caused by
MusicClient.stop()is waiting audio player thread to exit. - Fixed after function is called in audio player when
MusicClient.stop()is called. - Fixed WAVAudio malfunctioning if given stream is valid wav.
- Fixed after function called when voice is disconnected
New features
- Added new opus encoder using PyAV library.
- Added equalizer support for PyAV-based music source for
LibAVPCMAudio - Added
Playlist.get_pos_from_track()to retrieve track position from given track - Added
MusicSource.volumeproperty to return current volume. - Added
MusicSource.equalizerproperty to return current equalizer. - Added
MusicClient.playlistproperty to retrieve current playlist inMusicClient - Added
MusicClient.set_playlist()to set new playlist. - Added
MusicClient.volumeproperty to return current volume from music client. - Added
MusicClient.set_volume()to set volume music source in music client. - Added
MusicClient.equalizerproperty to return current equalizer from music client. - Added
MusicClient.set_equalizer()to set equalizer in music client. - Added hook on_disconnect on MusicClient.
- Added hook on_player_error on MusicClient.
Breaking changes
- Replaced
EqualizerandSubwooferEqualizerwithpydubEqualizerandpydubSubwooferEqualizer. - Removed module
discord.ext.music.voice_source.av.encoderas it unused because new opus encoder. - Removed
LibAVAudioas it unused. - Replaced
LibAVErrorwithStreamHTTPError - Removed
MusicClient.register_after_callback(), replaced with:MusicClient.before_play_next()MusicClient.after_play_next()
- Removed
Track.stream_urlattribute andstream_urlparameter - Player error handling now are called from
MusicClient.on_player_error()