notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port to 64bit. Some gcc 4.4 warning fixes
[libpicofe.git]
/
linux
/
sndout_oss.c
diff --git
a/linux/sndout_oss.c
b/linux/sndout_oss.c
index
ccadbba
..
f74e706
100644
(file)
--- a/
linux/sndout_oss.c
+++ b/
linux/sndout_oss.c
@@
-44,7
+44,11
@@
int sndout_oss_start(int rate, int frame_samples, int stereo)
if (sounddev == -1)
{
perror("open(\"/dev/dsp\")");
if (sounddev == -1)
{
perror("open(\"/dev/dsp\")");
- return -1;
+ sounddev = open("/dev/dsp1", O_WRONLY|O_ASYNC);
+ if (sounddev == -1) {
+ perror("open(\"/dev/dsp1\")");
+ return -1;
+ }
}
// calculate buffer size. We one to fit 1 frame worth of sound data.
}
// calculate buffer size. We one to fit 1 frame worth of sound data.