Motorcycle Revving sound effects

Member
Posts: 509
Joined: 2002.05
Post: #1
What's the easiest way to make a motorcycle noise loop and change pitch depending on RPM? I already have a NSSound class with sound effects, but I could always switch to another API. Isn't there a way to use NSSound to load and quicktime to modify/play/loop? Does anyone have any open source code or code snippets that do this?
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #2
NSSound is crappy when it comes to effects; switch over to openal and create a cocoa wrapper for it.

[edit]besides, this is supposed to be cross-platform, right?[/edit]

It's not magic, it's Ruby.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #3
Nayr Wrote:[edit]besides, this is supposed to be cross-platform, right?[/edit]

Eventually I will port it to learn C++, I wish I would have started that 10 thousands lines ago.

Good point about OpenAL, thats what I had in mind when I posted this thread.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #4
After 5 minutes I already have a problem, I can't load the framework. I added the framework correctly to my project and this code gives me this error

#import <OpenAL/alut.h>
/Users/jake/Desktop/New Game/New New Game/Data Types.h:21:24: OpenAL/alut.h: No such file or directory


This has gotta be pretty simple
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #5
Did you compile it yourself, or are you using Apple's version, or what?

It's not magic, it's Ruby.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #6
I'm using the framework that came with my computer in System/Frameworks/OpenAL.framework
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #7
Without the includes Im getting new errors, I just installed OpenAL again too.

ld: can't locate framework for: -framework OpenAL
ld: can't locate framework for: -framework OpenAL
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #8
hrrm
I can't help, seeing as i don't have Tiger. I suspect that this is an xcode problem. Try compiling some example code from the Terminal.

It's not magic, it's Ruby.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Using SDL_mixer to play ogg sound (not music) effects kordova 3 6,597 Sep 1, 2006 12:29 PM
Last Post: kordova