X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2Fgp2x.c;h=6e442433c48651860da46e412e91a16a6fa5fff6;hb=3ef975c9e4839978545919a2684ba97d1a2a881a;hp=d0efee88cbc8ee1a7fcfabc88e42a6d67dbf7cda;hpb=8dfb9fd5df1ccef9f8aba43cfed8be82c822f512;p=libpicofe.git diff --git a/linux/gp2x.c b/linux/gp2x.c index d0efee8..6e44243 100644 --- 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;