Discuss Hacking the use of undocumented framework funtions at the iPhone Developer Exchange - Hackint0sh.org; Hi everyone,
I'm currently trying to hack the use of the audio converters for mp3, ...
Hacking the use of undocumented framework funtions
I'm currently trying to hack the use of the audio converters for mp3, aac etc decompression present in the iPhone/iPod touch for the 2.1 OS. I have to do this because the audio converter api present in the AudioToolbox no longer works, it always returns error codes when decompressing but works fine with wav files.
Using gdb on the iphone I've come across a key function in the AudioToolbox that's called when creating an audio output queue (as the queue happily decompresses audio I aim to see how it is performed and replicate the process), however I cannot work out how I can call it from my code. When otool is used to disassemble the AudioToolbox the function looks like this,
RIZfWqMk(bool, unsigned long, AudioStreamBasicDescription const*)
I try to declare the function in my code as such,
extern void RIZfWqMk(bool, unsigned long, AudioStreamBasicDescription const*);
but I get XCode cannot link it to the library. Most C functions appear differently in the assembly ie they don't describe the arguments just the name eg
So, my question is two fold, why does the function appear differently to other C functions and why cant I link to it?
Many thanks in advance
Okay so I've answered my own question so for anyone else who may be interested.
Using nm on the library showed me that the RIZfWqMk function is listed as _Z8RIZfWqMkbmPK27AudioStreamBasicDescription in the symbol table of the framework. It also showed me that this function is a text symbol, local (static) and so that is why I cannot link to it.
By toohtik in forum iPhone Developer Exchange
Last Post: 03-15-2009, 07:53 PM
By hackint0sh in forum Latest Headlines
Last Post: 11-27-2008, 08:00 AM
By hquest in forum General
Last Post: 09-15-2008, 02:58 AM
By BiOsS in forum General
Last Post: 11-22-2007, 11:21 AM
By chinaet in forum Free Toolchain Software
Last Post: 09-27-2007, 05:44 AM
Tags for this Thread