Accessing Music Library & modifying playback

Hi,

I'm trying to figure out how I could possibly access the iPod music library on iPhone, choose a track and load it into an audio source in unity 3.

This way I could modify the playback pitch and add various effects.

var audioPitch: float;
var audioSource: GameObject;

function Update()
{
    audioSource.audio.pitch = audioPitch;
}

My question is, HOW can I access the library and load a selected track into the audio source. I really appreciate any help. If you know then please provide some details about it.

Thanks in advance,

Lukas

1 Answer

1

Unity3d does not provide any API for that. But you can use this plugin.