-
Notifications
You must be signed in to change notification settings - Fork 345
Audio Wont Play #13
Comments
i have tried the same thing with the revolver sound class also, it has not worked |
Looks fine. Are you sure it’s not the accelerator code? Do the events fire? Did you try playing the sound in response to touch, for example? |
the event is firing i checked by updating a label under those conditions. I havnt tried it with a touch event but maybe I should try that next. could it be the sound in my simulator is not working? |
Ah yes, definitely try on the device. |
I havnt sprung for the dev license yet. I am testing the accelerometer over wifi. I might have to buy it now though I suppose. |
Did you try the demo project? Does it work in your Simulator? |
In fact it does work. So the simulator probaly isnt the problem |
Can you mail me your project? |
Yes. I feel dumb for asking but what would be the best way of going about that? |
ok i just sent it |
Take a look in the console (Cmd-Shift-R), Finch complains of sound initialization error. In your case the problem is in the sound file – Finch only supports 8bit and 16bit sample resolutions, whereas your sound has a 24bit sample resolution. |
thank you sir. i really appreciate all the effort! it works now! |
I am probably doing something rather stupid but i just cannot figure it out. I am new to this. Any help would be appreciated.
- (void)viewDidLoad{
[super viewDidLoad];
engine = [[Finch alloc] init];
snare = [[Sound alloc] initWithFile:
[[NSBundle mainBundle] URLForResource:@"snare" withExtension:@"wav"]];
}
The text was updated successfully, but these errors were encountered: