Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-16-2009, 01:02 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: The Netherlands
Age: 30
Posts: 86
Exclamation Can AVAudioPlayer play songs from iTunes library?

Hi,

What i would like to do is let the iPhone/iPod Touch users select a song from their iTunes library and do the following things:

1) Play that song and let them control it (pause, stop, start, FFWD and backward).

2) Run through the selected song quickly, and show an audio level visualisation (a graph showing the audio's db levels or such).

3) This is not a must, but is it possible to copy the selected media item to your own app's documents directory (or copy the sound streaming and save that?)

Are these things possible? especially, 1 and 2 i would like to get done. Can i use the AVAudioPlayer for this or need i go into the AudioQueue stuff?
__________________
EeKay Sez:: : :

0110100001100101011011000110110001101111 to you !

WwW : www.eekay.nl
mniE : www.mynameise.com/eekay
Twitter : www.twitter.com/eekayonline
EeKay is offline   Reply With Quote
Old 10-17-2009, 02:55 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: The Netherlands
Age: 30
Posts: 86
Exclamation A step further

Okay, i created a minimalistic musicplayer using AVAudioPlayer. But i am wondering:

1) if i setMeteringEnabled to TRUE, and capture the average and peak level values, and do peak-average. Will i be able to create the characteristic Audio Graphs with the peaks and valleys from that?

2) Is it possible to "quickly" FFWD through the audio so i can display a graph like mentioned in question 1), without having to play it audible to the user the first time?

Hope someone can answer this for me. Thanks in advance!
__________________
EeKay Sez:: : :

0110100001100101011011000110110001101111 to you !

WwW : www.eekay.nl
mniE : www.mynameise.com/eekay
Twitter : www.twitter.com/eekayonline
EeKay is offline   Reply With Quote
Old 10-20-2009, 06:01 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: The Netherlands
Age: 30
Posts: 86
Exclamation got podcast global info but...

Okay i moved on to the MPMusicPlayerController, but i cannot seem to find the contents of the podcast numbers that it contains. The iPod application retrieves this info (select an audio podcast and press the upper right icon; you can see al the subparts listed along with duration time);

is there any way to retrieve that info? I found some api listings at Erica Sadun's site but i cannot find anything usefull among those yet?
__________________
EeKay Sez:: : :

0110100001100101011011000110110001101111 to you !

WwW : www.eekay.nl
mniE : www.mynameise.com/eekay
Twitter : www.twitter.com/eekayonline
EeKay is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, avaudioplayer, itunes, select, visualization

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 269
21 members and 248 guests
ADY, AragornSG, Bertrand21, Dani77, Dattee, fkmtc, HDshot, HemiMG, iDifferent, JasonR, jimbo, macquitzon216, mer10, prchn4christ, Rudy, sacha1996, sneaky, spiderguy84, Sunny46, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:09 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0