gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Sound options

#139958 - Blue Frenzy - Wed Sep 12, 2007 1:18 am

I am using PALib's method to play raws. But it doesn't come with options to change or retrieve the sound position when playing. I really need this. Can someone help here? Playing mp3 instead of raws could be an option(speed issues talking)?

#140583 - 0xtob - Mon Sep 17, 2007 10:59 pm

Unfortunately the playback position cannot be retrieved. You could use a timer that is started at the same time as you start the sound and that uses the same frequency as the sound's sampling rate.
_________________
http://blog.dev-scene.com/0xtob | http://nitrotracker.tobw.net | http://dsmi.tobw.net

#140584 - Diddl - Mon Sep 17, 2007 11:03 pm

0xtob wrote:
Unfortunately the playback position cannot be retrieved. You could use a timer that is started at the same time as you start the sound and that uses the same frequency as the sound's sampling rate.


you could use SDL-mixer for this. this wonderful lib do call a callback function while playback.