Results 1 to 2 of 2
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, ...
  1. #1
    Newbie Array

    Join Date
    May 2008
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Question Hacking the use of undocumented framework funtions

    Hi everyone,

    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

    _AudioComponentFindNext:

    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



  2. #2
    Newbie Array

    Join Date
    May 2008
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Answered

    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.

 

 

Similar Threads

  1. SpringBoard framework
    By toohtik in forum iPhone Developer Exchange
    Replies: 2
    Last Post: 03-15-2009, 06:53 PM
  2. MacNN: iPhone SDK 2.2 includes undocumented TV-out API
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 11-27-2008, 07:00 AM
  3. [iPhone OS] Undocumented Features
    By hquest in forum General
    Replies: 4
    Last Post: 09-15-2008, 02:58 AM
  4. GMM.Framework ??
    By BiOsS in forum General
    Replies: 2
    Last Post: 11-22-2007, 10:21 AM
  5. CoreTelephony.framework?
    By chinaet in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 09-27-2007, 05:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:14 AM.
twitter, follow us!