playing wav filies from a SD card, is there a delay?
Dgswaner
Posts: 795
Subject pretty much says it, doing some thinking/planning for new ad ons to my bot, it would be nice to have natural language error codes, for live debugging, or even a verbal menu. and I was just curious if someone could tell me if this is a reality or not. if it takes even a few seconds to load a wav and then play it, it won't work for debugging,
I know most of the answer is determined by file size, length etc. but If someone could tell me a delay (if any) for playing reasonably sized files on the go. from an SD card, by reasonable I'm talking 3-4 seconds or less. I know you can save wav files right to the prop and play them with no delay but I want to have several (10+/-) and know I won't have space.
if anyone has played with this before and could LEARN me I would appreciate it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
I know most of the answer is determined by file size, length etc. but If someone could tell me a delay (if any) for playing reasonably sized files on the go. from an SD card, by reasonable I'm talking 3-4 seconds or less. I know you can save wav files right to the prop and play them with no delay but I want to have several (10+/-) and know I won't have space.
if anyone has played with this before and could LEARN me I would appreciate it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Comments
I'd recommend using a small serial LCD display or, if you have enough memory, a video text display with a little TV monitor like the one Parallax sells. You can get a lot of informative information on a display like that and you can just disconnect it when you don't need it. You could even use broadcast mode for short range TV transmission.
I can't find it on his site however, but I'm sure he'll tell us where it is as soon as he reads this thread. :-)
Ah, here it is:
http://forums.parallax.com/showthread.php?p=695703
Try it, it's good.
Post Edited (Clemens) : 3/3/2008 11:43:03 PM GMT
Fill buffer A
repeat (for n sectors)
Play buffer A while filling buffer B
Play buffer B while filling buffer A
*Peter*
I don't notice any·delay.
I have info here:
http://www.rayslogic.com/propeller/Programming/dac/dac.htm