Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

v0.3.0

Latest

Choose a tag to compare

@mansuf mansuf released this 16 Nov 17:26
· 2 commits to main since this release

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.volume property to return current volume.
  • Added MusicSource.equalizer property to return current equalizer.
  • Added MusicClient.playlist property to retrieve current playlist in MusicClient
  • Added MusicClient.set_playlist() to set new playlist.
  • Added MusicClient.volume property to return current volume from music client.
  • Added MusicClient.set_volume() to set volume music source in music client.
  • Added MusicClient.equalizer property 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 Equalizer and SubwooferEqualizer with pydubEqualizer and pydubSubwooferEqualizer.
  • Removed module discord.ext.music.voice_source.av.encoder as it unused because new opus encoder.
  • Removed LibAVAudio as it unused.
  • Replaced LibAVError with StreamHTTPError
  • Removed MusicClient.register_after_callback(), replaced with:
    • MusicClient.before_play_next()
    • MusicClient.after_play_next()
  • Removed Track.stream_url attribute and stream_url parameter
  • Player error handling now are called from MusicClient.on_player_error()