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:
Michael Gernoth 2004-09-11 19:17:48 +00:00
parent 4b2941c764
commit 06e4ea81a9

View File

@ -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;