notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
region detection, cd states wip, fixes, stuff
[libpicofe.git]
/
linux
/
gp2x.c
diff --git
a/linux/gp2x.c
b/linux/gp2x.c
index
d0efee8
..
6e44243
100644
(file)
--- a/
linux/gp2x.c
+++ b/
linux/gp2x.c
@@
-298,6
+298,11
@@
void gp2x_sound_write(void *buff, int len)
write(sounddev, buff, len);
}
+void gp2x_sound_sync(void)
+{
+ ioctl(sounddev, SOUND_PCM_SYNC, 0);
+}
+
void gp2x_sound_volume(int l, int r)
{
l=l<0?0:l; l=l>255?255:l; r=r<0?0:r; r=r>255?255:r;