Alec Bennett wrote:
16 bit wav files. 1411 kbps. About 5 megs each but one is very long (a 13 minute medley of all of them, 133 megs).
Okay, I didn't realise they were that big -- I was thinking short horn sounds, not substantial pieces of music!
You bring up a good point, I can certainly make them mono.
Also maybe 8 bit -- a horn probably doesn't need terrifically high sound fidelity.
But surely there must be some way to save a preloaded state?
That's over 200MB altogether, which may be why it takes so long. Have you tried simply reading all the files to see how long it takes? If that takes just as long, then reading a preloaded state isn't going to gain you anything -- you've still got over 200MB of data to read in. You could also try using a compressed format such as mp3 or ogg/vorbis to see if it loads any faster. Another thought -- instead of loading the medley as a separate file, could you assemble it on the fly from parts of the others? Another other thought -- instead of storing entire tunes as sound files, just use samples of the horn sounds and write a sequencer to play the tunes with them. -- Greg