RSS

Monthly Archives: June 2012

Unlock iPhone 3gs 5.1.1

Hello friends , i just have upgrade iPhone 3gs to 5.1.1 os and succesfully jailbreak and unlock with help from following link , so if you want to unlock your 3gs then follow the steps , it shows video , and if you have any query or you want to jailbreak any iOS device then let me know i will help you.

Unlock iPhone 3gs 5.1.1

 
Leave a comment

Posted by on June 30, 2012 in Uncategorized

 

Audio Streamer For iPhone Developers

Mattgallagher Audio Streamer For iPhone Developers

 
Leave a comment

Posted by on June 30, 2012 in Uncategorized

 

Search API for iTunes Store

Search API For iTunes

 
Leave a comment

Posted by on June 30, 2012 in Uncategorized

 

Merge Image and Audio file in one file (Movie Maker) iPhone Help Link

StackOver Flow Movie maker Help Link

 
Leave a comment

Posted by on June 19, 2012 in Uncategorized

 

Another Best Example for Audio Recorder

is at following path
Audio Recorder Example

 
Leave a comment

Posted by on June 18, 2012 in Uncategorized

 

Record Audio iPhone Ready Example Link

Voice Recorder

also this link is helpfull for some queries.

StackOver Flow Help

 
Leave a comment

Posted by on June 18, 2012 in Uncategorized

 

Record Audio iPhone Example Code

#define DOCUMENTS_FOLDER [NSHomeDirectory() stringByAppendingPathComponent:@”Documents”]

– (void) startRecording{

UIBarButtonItem *stopButton = [[UIBarButtonItem alloc] initWithTitle:@”Stop” style:UIBarButtonItemStyleBordered target:self action:@selector(stopRecording)];
self.navigationItem.rightBarButtonItem = stopButton;
[stopButton release];

AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *err = nil;
[audioSession setCategory :AVAudioSessionCategoryPlayAndRecord error:&err];
if(err){
NSLog(@”audioSession: %@ %d %@”, [err domain], [err code], [[err userInfo] description]);
return;
}
[audioSession setActive:YES error:&err];
err = nil;
if(err){
NSLog(@”audioSession: %@ %d %@”, [err domain], [err code], [[err userInfo] description]);
return;
}

recordSetting = [[NSMutableDictionary alloc] init];

[recordSetting setValue :[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];

[recordSetting setValue :[NSNumber numberWithInt:16] forKey:AVLinearPCMBitDepthKey];
[recordSetting setValue :[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsBigEndianKey];
[recordSetting setValue :[NSNumber numberWithBool:NO] forKey:AVLinearPCMIsFloatKey];

// Create a new dated file
NSDate *now = [NSDate dateWithTimeIntervalSinceNow:0];
NSString *caldate = [now description];
recorderFilePath = [[NSString stringWithFormat:@”%@/%@.caf”, DOCUMENTS_FOLDER, caldate] retain];

NSURL *url = [NSURL fileURLWithPath:recorderFilePath];
err = nil;
recorder = [[ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&err];
if(!recorder){
NSLog(@”recorder: %@ %d %@”, [err domain], [err code], [[err userInfo] description]);
UIAlertView *alert =
[[UIAlertView alloc] initWithTitle: @”Warning”
message: [err localizedDescription]
delegate: nil
cancelButtonTitle:@”OK”
otherButtonTitles:nil];
[alert show];
[alert release];
return;
}

//prepare to record
[recorder setDelegate:self];
[recorder prepareToRecord];
recorder.meteringEnabled = YES;

BOOL audioHWAvailable = audioSession.inputIsAvailable;
if (! audioHWAvailable) {
UIAlertView *cantRecordAlert =
[[UIAlertView alloc] initWithTitle: @”Warning”
message: @”Audio input hardware not available”
delegate: nil
cancelButtonTitle:@”OK”
otherButtonTitles:nil];
[cantRecordAlert show];
[cantRecordAlert release];
return;
}

// start recording
[recorder recordForDuration:(NSTimeInterval) 10];

}

– (void) stopRecording{

[recorder stop];

NSURL *url = [NSURL fileURLWithPath: recorderFilePath];
NSError *err = nil;
NSData *audioData = [NSData dataWithContentsOfFile:[url path] options: 0 error:&err];
if(!audioData)
NSLog(@”audio data: %@ %d %@”, [err domain], [err code], [[err userInfo] description]);
[editedObject setValue:[NSData dataWithContentsOfURL:url] forKey:editedFieldKey];

//[recorder deleteRecording];

NSFileManager *fm = [NSFileManager defaultManager];

err = nil;
[fm removeItemAtPath:[url path] error:&err];
if(err)
NSLog(@”File Manager: %@ %d %@”, [err domain], [err code], [[err userInfo] description]);

UIBarButtonItem *startButton = [[UIBarButtonItem alloc] initWithTitle:@”Record” style:UIBarButtonItemStyleBordered target:self action:@selector(startRecording)];
self.navigationItem.rightBarButtonItem = startButton;
[startButton release];

}

– (void)audioRecorderDidFinishRecording:(AVAudioRecorder *) aRecorder successfully:(BOOL)flag
{

NSLog (@”audioRecorderDidFinishRecording:successfully:”);
// your actions here

}

 
Leave a comment

Posted by on June 18, 2012 in Uncategorized