-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'd like to be able to play back audio I've recorded using AVAudioRecorder @ 1.5x or 2.0x speed. I don't see anything in AVAudioPlayer that will support that. I'd appreciate some suggestions, with code if possible, on how to accomplish this with the iPhone 3.x SDK. I'm not overly concerned with lowering…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, here is my problem :
The code (FooController) :
NSString *path = [[NSBundle mainBundle] pathForResource:@"mySound" ofType:@"m4v"];
soundEffect = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
[soundEffect play];
// MicBlow
micBlow = [[MicBlowController…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
-(IBAction)playSound{ AVAudioPlayer *myExampleSound;
NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"];
myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL];
myExampleSound.delegate = self;
[myExampleSound…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to generate a sound wave programmatically and play it with AVAudioPlayer. I have the code to encode my waveform as linear PCM, 44100Hz, mono, 8 bits per sample.
I am not clear on what kind of envelope I need to wrap around this buffer so that AVAudioPlayer recognizes it as PCM.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey guys,
I have this code:
- (id<SelfReleasingSound>) initWithFilepath: (NSString *) filepath {
self = [super init];
if(self != nil){
NSData * soundFileData = [NSData dataWithContentsOfFile: filepath];
NSError * error;
player = [[AVAudioPlayer alloc] initWithData: soundFileData…
>>> More