1
OSStatus status = AudioQueueStart(audioQueue, nil);
[NSError errorWithDomain:NSCocoaErrorDomain code:status userInfo:nil];//not really useful

returns an error (-66674). So I am curios what the errors means. But more I really want to know whether there is some better function on iOS which gives me a text for the error like:

NSString* errorText = SomeMagicErrorFunction( status );
Karsten
  • 1,869
  • 22
  • 38

2 Answers2

0

All of the errors are in the documentation (you can search the documentation for 'AudioQueueStart' to find the correct documentation page). it's Here.

The error is kAudioQueueErr_PrimeTimedOut the extra detail is:

During a call to the AudioQueuePrime function, the audio queue’s audio converter failed to convert the requested number of sample frames. Available in OS X v10.6 and later.

James Snook
  • 4,063
  • 2
  • 18
  • 30
0

I've not found a complete solution.

In this question I posted an answer with a OSX program you can write that decodes some, but not all, the codes and it relies on Carbon for that purpose (still works under 10.9, but not tested under 10.10).

So the idea is that you log the error codes in your app's log files and when diagnosing the issue from production you use the program I provide to attempt to get some meaningful error text.

Another solution is given in my answer to this question, where you search for the error code in the SDK include files in order to find some meaning.

Not ideal, but I guess Apple want it that way.

Community
  • 1
  • 1
trojanfoe
  • 120,358
  • 21
  • 212
  • 242