Why the file does not open
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