mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-06 23:28:04 -04:00
oss: use other sync macro
for compatibility with OSSv4
This commit is contained in:
parent
26ea18173c
commit
0415ebf191
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ void sndout_oss_stop(void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// sync causes trouble on Caanoo..
|
// sync causes trouble on Caanoo..
|
||||||
//ioctl(sounddev, SOUND_PCM_SYNC, 0);
|
//ioctl(sounddev, SNDCTL_DSP_SYNC, 0);
|
||||||
|
|
||||||
close(sounddev);
|
close(sounddev);
|
||||||
sounddev = -1;
|
sounddev = -1;
|
||||||
|
@ -178,7 +178,7 @@ int sndout_oss_can_write(int bytes)
|
||||||
void sndout_oss_wait(void)
|
void sndout_oss_wait(void)
|
||||||
{
|
{
|
||||||
// FIXME?
|
// FIXME?
|
||||||
ioctl(sounddev, SOUND_PCM_SYNC, 0);
|
ioctl(sounddev, SNDCTL_DSP_SYNC, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sndout_oss_setvol(int l, int r)
|
void sndout_oss_setvol(int l, int r)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue