Code example for SoundPool

Methods: play

0
		sounds.put("pop", soundPool.load(this, R.raw.pop, 1));
	} 
 
	private void playSound(String name) {
		if (sounds.containsKey(name)) {
			soundPool.play(sounds.get(name), 1f, 1f, 0, 0, 1f);
		} else { 
			ADB.log("Could not play sound: " + name);
		} 
	} 
 
	@Override 
	public IBinder onBind(Intent arg0) {
		return null; 
	} 
 
	@Override 
	public void onStart(Intent intent, int startId) {
		initializeSounds(); 
		notifier = new Notifier();
		notifier.start();