X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Fsndout_oss.c;h=f74e706d57c817bb0f94ab0d416d8b21516c59cc;hb=b8a1c09ad1ef0b807c2eb1632d34e6bfae14b633;hp=ccadbba1255c53372abd782234407409a20aacfc;hpb=71f68165b6e50f58ddbc6e98a38c7dd4968ccca2;p=picodrive.git diff --git a/platform/linux/sndout_oss.c b/platform/linux/sndout_oss.c index ccadbba..f74e706 100644 --- a/platform/linux/sndout_oss.c +++ b/platform/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\")"); - 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.