MDMstudios
Apr 23, 2008, 07:36 PM
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
#import <UIKit/UIKit.h>
#import "AudioFX.h"
@interface MyView : UIView {
AudioFX *bSound;
}
- (IBAction)playSound:(id)sender;
@end
.m
- (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.
Here is the code.
.h
#import <UIKit/UIKit.h>
#import "AudioFX.h"
@interface MyView : UIView {
AudioFX *bSound;
}
- (IBAction)playSound:(id)sender;
@end
.m
- (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.
