def get_equalizer_amps(self): """ Return a list of equalizer amplifications for each band. """ return [ vlc.libvlc_audio_equalizer_get_amp_at_index(self.equalizer, index) for index in range(vlc.libvlc_audio_equalizer_get_band_count()) ]
def get_equalizer_freqs(): """ Return a list of equalizer frequencies for each band. """ return [ vlc.libvlc_audio_equalizer_get_band_frequency(index) for index in range(vlc.libvlc_audio_equalizer_get_band_count()) ]
def set_equalizer_values(self, amps): """ Set a list of equalizer amplifications for each band. """ assert len(amps) == vlc.libvlc_audio_equalizer_get_band_count() for index, amp in enumerate(amps): assert vlc.libvlc_audio_equalizer_set_amp_at_index( self.equalizer, amp, index) == 0 self.media_player.set_equalizer(self.equalizer)