Rss

I didn’t know 1718449215 was the 4CC for “fmt?” I do now.

You know things are going badly when you get errors so cryptic and so consistently that you write yourself a pretty-print method to make sense of them.

Here’s where I was as of last night:


- (void) failTo: (NSString*) functionName withOSStatus: (OSStatus) stat {
	NSError *error = [NSError errorWithDomain:NSOSStatusErrorDomain
			code:stat userInfo:nil];
	NSLog (@"Error in %@: %@", functionName, [error description]);
}

Which allows me to catch errors like this:


if (audioErr != noErr) {
	[self failTo: @"AudioQueueNewInput" withOSStatus: audioErr];
	return;
}

And which produces output like this. A lot.

2009-02-03 21:20:18.874 AQRecorderThrowaway[3522:20b] Error in AudioQueueNewInput: Error Domain=NSOSStatusErrorDomain Code=1718449215 "Operation could not be completed. (OSStatus error 1718449215.)"

And a little searching through the Audio Queue Services documentation tells us that 1718449215 is is the four char code for fmt?, also known as kAudioFormatUnsupportedDataFormatError.

Previous Post

Next Post

Comments (3)

  1. jcreus

    Hey, just wanted to say your blog has helped me a lot over the last month or so. I’m also going through the pains of learning CoreAudio.

    So now I also know what that error code means. Now the hard part is to figure out why on earth it’s happening in the first place.

    • Glad the blog has helped. So are you getting “fmt?”, or some other 4CC?

      If you’re not on the coreaudio-api list (lists.apple.com), you should be. Very helpful community there.

  2. […] but hopefully, we’ll be able to keep a few people from going nuts trying to figure out WTF error 1718449215 means (it’s kAudioFormatUnsupportedDataFormatError, and I’ll bet you tried to use floating […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.