Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MDMstudios

macrumors member
Original poster
Mar 18, 2008
36
0
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
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.