Okay, I am having no luck with getting a short sound set up, and I was wondering if yall could help me.
Here is the code.
.h
.m
I have everything in IB hooked up right, but still it won't work.
Here is the code.
.h
Code:
#import <UIKit/UIKit.h>
#import "AudioFX.h"
@interface MyView : UIView {
AudioFX *bSound;
}
- (IBAction)playSound:(id)sender;
@end
.m
Code:
- (IBAction)playSound:(id)sender {
bSound = [[[AudioFX alloc] initWithPath:@"b.wav"] autorelease];
[bSound play];
}
I have everything in IB hooked up right, but still it won't work.