Dynamic sound playback?

Post: #1
Does anyone know of a good tool (or method) for having a sound play back at variable rates? Like a few-minute-long sound clip speeding up and slowing down based on the speed of movement in the game?

As always, thanks for the help.
Quote this message in a reply
Posts: 2
Joined: 2011.07
Post: #2
Just to add to this, it'd be really great to know (if such a function exists) whether or not it changes the pitch of the sound as well.
Quote this message in a reply
Posts: 156
Joined: 2002.11
Post: #3
In the Sound Manager API (legacy), you can set up all those you mentioned in the callbacks.

Check out the source code of Glypha III.

Now, someone had asked me about changing the pitch of a particular sound used for the engine of a boat. You can do that with CoreAudio (OS X).

You could code your own method / filter to go inside the IOProc function (if you are familiar with how CoreAudio works), or you could use an Audio Unit (AU) to post-process the sound in real-time.
Quote this message in a reply
Posts: 522
Joined: 2002.04
Post: #4
Check out SWSounds.c, part of SpriteWorld. It can very easily be modified for use outside of SpriteWorld. It is very solid code in my experience.

Quote this message in a reply
Posts: 916
Joined: 2002.10
Post: #5
CocoaBlitz also has excellent sound manipulations (all done with CBMovie)
Quote this message in a reply
Posts: 446
Joined: 2002.09
Post: #6
FMOD makes this sort of stuff _real_ easy (as long as the licensing works for you).
Quote this message in a reply
Posts: 469
Joined: 2002.10
Post: #7
I should probably post the Volcanis code sometime...

Volcanis makes use of CBMovie by varying the rates of the impact sounds so they all sound different.

edit: If you'd like to download the source of just CBMovie, you can do that here.

15.4" MacBook Pro revA
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenAL WAV Playback DylanE 7 6,863 Nov 27, 2006 02:21 PM
Last Post: DylanE
  24 Bit Audio Playback TREMS 2 4,687 Sep 29, 2006 06:00 PM
Last Post: Jones
  no ogg sound playback GryphonClaw 1 3,579 Jan 9, 2006 06:32 PM
Last Post: OneSadCookie