aboutsummaryrefslogtreecommitdiff
path: root/audio/ossaudio.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-11-11 16:55:09 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-11-11 16:55:09 +0000
commit7372f88dc171775c2918b3a874edf0a1d5266b19 (patch)
tree4b2eda389460737de0b50228f6b80c0bf2d97a68 /audio/ossaudio.c
parentd7382233d8408b2b32809f3783a5083cce14f291 (diff)
audio fixes (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1133 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/ossaudio.c')
-rw-r--r--audio/ossaudio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index 6bf8cc40c2..79b1e8a5b3 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
@@ -40,7 +40,6 @@ typedef struct OSSVoice {
int old_optr;
} OSSVoice;
-
#define dolog(...) AUD_log ("oss", __VA_ARGS__)
#ifdef DEBUG
#define ldebug(...) dolog (__VA_ARGS__)
@@ -371,9 +370,7 @@ static int oss_hw_init (HWVoice *hw, int freq, int nchannels, audfmt_e fmt)
if (oss->pcm_buf == MAP_FAILED) {
dolog ("Failed to mmap OSS device\nReason: %s\n",
errstr ());
- }
-
- for (;;) {
+ } else for (;;) {
int err;
int trig = 0;
if (ioctl (oss->fd, SNDCTL_DSP_SETTRIGGER, &trig) < 0) {