|
From: Chris N. <ch...@to...> - 2002-08-14 18:34:18
|
SDL_mixer appears to lack some functionality that we need. Specifically, we need to be able to start playing a sound effect at places other than the beginning of the sound effect. This is necessary in order to implement the rewind / fast-forward functions in conversation, for voices. Also, we need a function which will determine the length of a sound effect (Mix_Chunk), in milliseconds. Mix_Chunk->alen tells us the length in bytes, but we aren't given any direct way to determine the sampling rate, or the bits per sample (or stereo vs mono). SDL_mixer might convert each sound effect to the audio output format, when it loads a wav... This would make sense. In this case, it would be easy to use Mix_Chunk->alen to detemine a sound effect's length, in conjunction with Mix_QuerySpec(). Can somebody please verify this, or even write such a function? This website has documentation for SDL_mixer: http://jcatki.no-ip.org/SDL_mixer/SDL_mixer_frame.html Thanks. -Chris |