views:

19

answers:

0

I have a problem. I'm working on a project for my final year. I'm supposed to allow multiple recordings without having them overwrite each other. My supervisor advised me to put it as '.caf' but i'm not sure how to go about doing it. This is part of my codes:

  • (IBAction)play:(id)sender { if (player->IsRunning()) [self stopPlayQueue];

    else {
    recordFilePath = (CFStringRef)[NSTemporaryDirectory() stringByAppendingPathComponent: @"recordedFile2.caf"]; player->CreateQueueForFile(recordFilePath);

    OSStatus result = player->StartQueue(false);
    if (result == noErr)
        [[NSNotificationCenter defaultCenter] postNotificationName:@"playbackQueueResumed" object:self];
    

    } }