• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AudioFileOpen Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioFileOpen Error


  • Subject: AudioFileOpen Error
  • From: Julio Ferrer <email@hidden>
  • Date: Thu, 15 Jan 2009 06:59:29 -0800 (PST)

Hi,

I'm new to Cocoa and I'm totally stucked with
AudioFileOpen.  I searched the web and the mailing list for hints on
what I'm doing wrong, but I can't figure out the problem.  Below is
what I did.

a) Created a Cocoa Core Data Document Application.

b) Code for MyDocument.h

     #import <Cocoa/Cocoa.h>
     #import <AudioToolbox/AudioToolbox.h>

    @interface MyDocument : NSPersistentDocument {
         FSRef                          mFileRef;
         AudioFileID                mExportFileID;
     }

    @end

c)Code for MyDocument.m

     #import "MyDocument.h"

    @implementation MyDocument

    - (id)init
    {
       self = [super init];
       mExportFileID = 0;

       NSString *fileLocation =@"/Users/julioferrer/Desktop/Audio.aiff";
       fileLocation = [fileLocation stringByStandardizingPath];

      FSPathMakeRef((const UInt8*)[fileLocation fileSystemRepresentation], &mFileRef, false);
      AudioFileOpen(&mFileRef, fsRdPerm, 0, &mExportFileID);

     }

When I build the project I get one error on the AudioFileOpen line.  This is log:    "_AudioFileOpen", referenced from:
I'm also using the GCC_ENABLE_OBJC_GC = supported


Thanks for any help.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AudioFileOpen Error
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: formatting toolbar-please help
  • Next by Date: Re: AudioFileOpen Error
  • Previous by thread: formatting toolbar-please help
  • Next by thread: Re: AudioFileOpen Error
  • Index(es):
    • Date
    • Thread