SoundPool Loading from URL
<p>I load my mp3 via a path into sound pool. For reasons I don't want to go into I dont want to load via <code>R.raw</code>...</p>

<p>But I get the error: </p>

<pre><code>play(int, float, float, int, int, float) in the type SoundPool is not  applicable for the arguments (Object, float, float, int, int, float)
</code></pre>

<p>Is there a way to convert the object to an <code>int</code>?</p>

<pre><code>SoundPool mySoundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0);
HashMap mySoundPoolMap = new HashMap&lt;Integer, Integer&gt;(); 
mySoundPoolMap.put(0,  mySoundPool.load("android.resource://com.App.Notifications/raw/myMP3",1));

float streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
streamVolume = streamVolume / mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);

mySoundPool.play(mySoundPoolMap.get(0), streamVolume, streamVolume, 1, 0, 1f);
</code></pre>
