void VlcProc::on_volume_changed( vlc_object_t* p_obj, vlc_value_t newVal ) { (void)p_obj; (void)newVal; playlist_t* pPlaylist = getIntf()->p_sys->p_playlist; audio_volume_t volume = aout_VolumeGet( pPlaylist ); SET_VOLUME( m_cVarVolume, volume, false ); bool b_is_muted = aout_IsMuted( VLC_OBJECT(pPlaylist) ); SET_BOOL( m_cVarMute, b_is_muted ); }
/* libvlc mute/unmute event slot */ void SoundWidget::updateMuteStatus() { playlist_t *p_playlist = pl_Get( p_intf ); b_is_muted = aout_IsMuted( VLC_OBJECT(p_playlist) ); SoundSlider *soundSlider = qobject_cast<SoundSlider *>(volumeSlider); if( soundSlider ) soundSlider->setMuted( b_is_muted ); refreshLabels(); }
void VlcProc::init_variables() { playlist_t* pPlaylist = getIntf()->p_sys->p_playlist; SET_BOOL( m_cVarRandom, var_GetBool( pPlaylist, "random" ) ); SET_BOOL( m_cVarLoop, var_GetBool( pPlaylist, "loop" ) ); SET_BOOL( m_cVarRepeat, var_GetBool( pPlaylist, "repeat" ) ); audio_volume_t volume = aout_VolumeGet( pPlaylist ); SET_VOLUME( m_cVarVolume, volume, false ); bool b_is_muted = aout_IsMuted( VLC_OBJECT(pPlaylist) ); SET_BOOL( m_cVarMute, b_is_muted ); update_equalizer(); }
int libvlc_audio_get_mute( libvlc_media_player_t *mp ) { return aout_IsMuted( VLC_OBJECT(mp) ); }