Page 1 of 2 12 LastLast
Results 1 to 10 of 19
Discuss using musiclibrary on 2.0 fw at the iPhone Developer Exchange - Hackint0sh.org; hi all, so i've got celestial and musiclibrary compiled into a 2.0 app via xcode. ...
  1. #1
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default using musiclibrary on 2.0 fw

    hi all,

    so i've got celestial and musiclibrary compiled into a 2.0 app via xcode. it runs just fine, but i'm getting this warning i got a long time ago back in 1.1.4. i can't find any mention of it on google anymore though.

    does anyone remember how to resolve this error?

    <Warning>: NOTE:: loading Music Library: Could not find Dulcimer database at expected path: /var/mobile/Media/iTunes_Control/iTunes/iTunesDB

    coming from these lines of code:

    MusicLibrary *ml = [MusicLibrary sharedMusicLibrary];
    MLQuery *songs = [[MLQuery alloc] init];


    it was something to do with root vs. mobile user's and sandboxing, if i remember correctly...

    thanks



  2. #2
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    update: have tried both 1.1.4 and 2.0 frameworks.

  3. #3
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    got a tip that it might have to do with a new hash scheme. does that mean the 2.0 musiclibrary framework isn't up-to-date with the latest hash scheme?

  4. #4
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    solved by saurik.

    i was building and deploying the app through xcode, and something in the deployment process sandboxes your app in a way that you can avoid simply by scp'ing the app over yourself.

    so, i do everything in xcode, but then i just do a build for device not a build and go. then, scp -r the app over to /Applications, ldid -S the binary, and run it.

    i'm able to read the iTunesDB now.

  5. #5
    Senior Professional Array libertybenz2's Avatar

    Join Date
    Jan 2008
    Location
    New Jersey
    Posts
    253
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    26

    Default

    glad this issue was solved, but the THREAD TITLE IS NOT IN CONFORMITY! fail


  6. #6
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    is there a rule book i missed? well, let me just go edit the title.... oh wait, i can't.

  7. #7
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    looking at using audiotoolbox (specifically, audioqueue and audiofile) now to do playback. a lot more code to write, but gives access to individual samples.

    AudioFile.h has an interesting define:

    #define kAFInfoDictionary_Tempo "tempo"

    maybe i can actually access bpm metadata for a file now??

  8. #8
    Rookie Array

    Join Date
    Jul 2007
    Posts
    23
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I thought iTunes was 100% off limits with official SDK.

  9. #9
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    it is. i'm using the private frameworks.

  10. #10
    Rookie Array

    Join Date
    Jul 2008
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    ok, i've got a working xcode project that will:

    1. get the songs in your library
    2. playback any song from your library
    3. allow you to get an array for ALL the metadata for any song, not just the crappy accessor methods available via celstial

    it doesn't use celestial at all, so the only thing "illegal" about this project is the inclusion of the musiclibrary framework.

    will post it up soon.


 

 
Page 1 of 2 12 LastLast

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 04:08 PM.
twitter, follow us!