From 06e4ea81a9f97c255a46e5e342168b4496b017d3 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 11 Sep 2004 19:17:48 +0000 Subject: [PATCH] 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 --- rdpsnd_sun.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rdpsnd_sun.c b/rdpsnd_sun.c index a6b3d2c..fab7a93 100644 --- a/rdpsnd_sun.c +++ b/rdpsnd_sun.c @@ -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;