Correctly init the audio-info structure. Fixes playback-hangs on
OpenBSD after changing volume. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@771 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
4b2941c764
commit
06e4ea81a9
@ -167,11 +167,7 @@ wave_out_volume(uint16 left, uint16 right)
|
||||
uint balance;
|
||||
uint volume;
|
||||
|
||||
if (ioctl(g_dsp_fd, AUDIO_GETINFO, &info) == -1)
|
||||
{
|
||||
perror("AUDIO_GETINFO");
|
||||
return;
|
||||
}
|
||||
AUDIO_INITINFO(&info);
|
||||
|
||||
volume = (left > right) ? left : right;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user