• 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
Why the file does not open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why the file does not open


  • Subject: Why the file does not open
  • From: Gabriele Palmas <email@hidden>
  • Date: Tue, 10 Feb 2009 11:43:13 -0500

Hi,
I don't know if this is the right place where to post this question so my apologies in advance if I'm wrong.

Ok here is the problem.
I have a file in my project called track.aif. When I run my app the file cannot be found because the this set of following instructions don't work as suppose to.

- (BOOL)getFilename:(char*)buffer maxLenth:(int)maxBufferLength
{
  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  NSString* docDir = [paths objectAtIndex:0];
  NSString* file = [docDir stringByAppendingString:@"/track.aif"];
NSLog(file);
  return [file getCString:buffer maxLength:maxBufferLength encoding:NSUTF8StringEncoding];
}

Any idea what I'm doing wrong??

Thanks in advance.

Gabriele
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why the file does not open
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Loop Audio on iPhone
  • Next by Date: Re: Why the file does not open
  • Previous by thread: System mute more testing.
  • Next by thread: Re: Why the file does not open
  • Index(es):
    • Date
    • Thread