mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
port to 64bit. Some gcc 4.4 warning fixes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@835 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
b0e318f7f0
commit
5f7b515538
4 changed files with 31 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue