40 |
int old_optr; |
int old_optr; |
41 |
} OSSVoice; |
} OSSVoice; |
42 |
|
|
|
|
|
43 |
#define dolog(...) AUD_log ("oss", __VA_ARGS__) |
#define dolog(...) AUD_log ("oss", __VA_ARGS__) |
44 |
#ifdef DEBUG |
#ifdef DEBUG |
45 |
#define ldebug(...) dolog (__VA_ARGS__) |
#define ldebug(...) dolog (__VA_ARGS__) |
370 |
if (oss->pcm_buf == MAP_FAILED) { |
if (oss->pcm_buf == MAP_FAILED) { |
371 |
dolog ("Failed to mmap OSS device\nReason: %s\n", |
dolog ("Failed to mmap OSS device\nReason: %s\n", |
372 |
errstr ()); |
errstr ()); |
373 |
} |
} else for (;;) { |
|
|
|
|
for (;;) { |
|
374 |
int err; |
int err; |
375 |
int trig = 0; |
int trig = 0; |
376 |
if (ioctl (oss->fd, SNDCTL_DSP_SETTRIGGER, &trig) < 0) { |
if (ioctl (oss->fd, SNDCTL_DSP_SETTRIGGER, &trig) < 0) { |