Sdl_mixer sound control

my trusty risc os machine’s sound system has functions so each time you play a
sound ( as a sound as a risc os module ) you can control the pitch and duration
of the sound, this was good ( was because i was using BASIC and a SOUND command
) ( now using SDL c and wav files )) anyway this was good because in a dodgy
version of pacman i did as the ghosts were ready to be eaten the sound would
increase in pitch in relation to the time left giving you some idea of how long
was left, i’m not sure about the manipulability (?!?) of wav files, but would
there or is there any way of achiveing the same sort of things without having
serveral wav files for each state of noise i would like.

as usual this post makes little sence to me but i hope you can figure out what i
am on about .–

Nice.


This message was sent using IMP, the Internet Messaging Program.

Neil White <neil cloudsprinter.com> writes:

would there or is there any way of achiveing the same sort of things without
having serveral wav files for each state of noise i would like.

The only way to shift pitches of a sample in SDL_mixer is to embed them into a
music module and play the sound using the setposition command to select which
"block" of notes to play. If you’re using the music channel already, then
having multiple samples is the only way left to do it.