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