X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Fgp2x.c;h=6e442433c48651860da46e412e91a16a6fa5fff6;hb=cb0316e4c526ad4c8d50e40e53c9d39044dcaaf9;hp=d0efee88cbc8ee1a7fcfabc88e42a6d67dbf7cda;hpb=42c7b14797fad5ad8adc822e8d0cebf326eb620b;p=picodrive.git diff --git a/platform/linux/gp2x.c b/platform/linux/gp2x.c index d0efee8..6e44243 100644 --- a/platform/linux/gp2x.c +++ b/platform/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;