View Single Post
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#118
Originally Posted by Android_808 View Post
jhb: any idea how to reduce time between wav file playback?

Found the following but it uses mplayer. Don't fancy pulling in lots of extra dependancies. Maybe mpd or something?
Code:
$ mkfifo audiofifo
$ aplay -t raw -c 2 -f S16_LE -r 44100 audiofifo &
$ mplayer -ao pcm:nowaveheader:file=audiofifo <audio files>
for just playing e.g. wav files this might do:
Code:
sox g5ann_001 g5con_001 -t wav - | aplay
Somehow the delays from aplay are only an issue on my laptop, not on the n900.

I still haven't had a close look at the xml file and its parsing - but from what I get the problem at the moment is triggering the commands? E.g. do we have enough events/info to trigger the commands at the right place and right time? E.g. proper distance, knowing we are still on the route, maybe even triggering recalculation?

Last edited by jhb; 2011-01-18 at 23:51.
 

The Following User Says Thank You to jhb For This Useful Post: