do not lose the first mixer event in oss
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1274 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
bc3c75e4dc
commit
80ab25c473
@ -162,8 +162,9 @@ oss_volume(uint16 left, uint16 right)
|
||||
|
||||
if (ioctl(g_dsp_fd, MIXER_WRITE(SOUND_MIXER_PCM), &volume) == -1)
|
||||
{
|
||||
perror("MIXER_WRITE(SOUND_MIXER_PCM)");
|
||||
warning("hardware volume control unavailable, falling back to software volume control!\n");
|
||||
oss_driver.wave_out_volume = rdpsnd_dsp_softvol_set;
|
||||
rdpsnd_dsp_softvol_set(left, right);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user