Rahat Ahmed
Rahat Ahmed

Reputation: 2180

Use SoundPool with URIs?

Is there any way to load URIs of sound files into a SoundPool? I tried poolMap.put(id, spool.load(sfxURI.getPath(), 0)); but that didn't work.

Upvotes: 0

Views: 315

Answers (1)

calav3ra
calav3ra

Reputation: 196

it wont work reliably except you know what length the fiels have on the server. use mediaplayer. soundpool is only made for short sounds. read the SDK page. :)

Upvotes: 1

Related Questions