[client] audio: provide option to prevent volume level sync
This commit is contained in:
1 parent
9759b5aa8f
commit
4f4cf2be7d
3 files changed
+13
-2
No files matched your search
+4
-2
@@ -432,7 +432,8 @@ void audio_playbackStop(void)
|
||||
|
||||
void audio_playbackVolume(int channels, const uint16_t volume[])
|
||||
{
|
||||
if (!audio.audioDev || !audio.audioDev->playback.volume)
|
||||
if (!audio.audioDev || !audio.audioDev->playback.volume ||
|
||||
!g_params.audioSyncVolume)
|
||||
return;
|
||||
|
||||
// store the values so we can restore the state if the stream is restarted
|
||||
@@ -887,7 +888,8 @@ void audio_recordToggleKeybind(int sc, void * opaque)
|
||||
|
||||
void audio_recordVolume(int channels, const uint16_t volume[])
|
||||
{
|
||||
if (!audio.audioDev || !audio.audioDev->record.volume)
|
||||
if (!audio.audioDev || !audio.audioDev->record.volume ||
|
||||
!g_params.audioSyncVolume)
|
||||
return;
|
||||
|
||||
// store the values so we can restore the state if the stream is restarted
|
||||
|
||||
Reference in new issue
Block a user