Changelog#
v0.3.0#
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:
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
LibAVPCMAudioAdded
Playlist.get_pos_from_track()to retrieve track position from given trackAdded
MusicSource.volumeproperty to return current volume.Added
MusicSource.equalizerproperty to return current equalizer.Added
MusicClient.playlistproperty to retrieve current playlist in MusicClientAdded
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
MusicClient.on_disconnect()on MusicClient.Added hook
MusicClient.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:
- Removed
Removed
Track.stream_urlattribute andstream_urlparameterPlayer error handling now are called from
MusicClient.on_player_error()
v0.2.0#
New features#
Added API Documentation
Added
WAVtoPCMAudiominiaudio-based music sources.Added Keyword-arguments only in
Track, all Keyword-arguments will be setted inTrackclass attributes.
Fixed bugs#
Fix unhandled error “cannot allocate memory in static TLS block” when importing
discord.ext.music.voice_source.avon ARM-based CPU. NOTE: The error is not fixed automatically inside python, because you need to fix it manually outside python. The solution is given inside the error.
Removals#
Removed
WorkerErrorexception class as it unused.Removed
ConverterErrorexception class as it unused.
Improvements#
Improved how next song playback system work in
MusicClient
Breaking changes#
Changed module name from
discord.ext.music.voice_source.pyavtodiscord.ext.music.voice_source.avmodule
discord.ext.music.equalizerno longer raising error when you try to import it.module
discord.ext.music.voice_source.miniaudiono longer raising error when you try to import it.module
discord.ext.music.voice_source.avno longer raising error when you try to import it.Now
PCMEqualizerandSubwooferPCMEqualizerwill raise error when you dont have the required modules and try to create it.Changed name
WavAudiotoWAVAudioCalling
LibAVOpusAudio.recreate()now will close the stream before re-creating it.Now
LibAVAudioStream.seek()method will directly seek to the stream instead of re-creating it.
v0.1.0#
This is First release of discord-ext-music