Home
last modified time | relevance | path

Searched refs:soundId (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSoundPool.java68 int soundId = soundIds.getAndIncrement(); in load() local
69 idToPaths.put(soundId, path); in load()
70 return soundId; in load()
75 int soundId = soundIds.getAndIncrement(); in load() local
76 idToRes.put(soundId, resId); in load()
77 return soundId; in load()
120 if (idIsForPath(playback.soundId, path)) { in wasPathPlayed()
130 if (idIsForResource(playback.soundId, resId)) { in wasResourcePlayed()
141 if (idIsForPath(playback.soundId, path)) { in getPathPlaybacks()
152 if (idIsForResource(playback.soundId, resId)) { in getResourcePlaybacks()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSoundPoolTest.java45 int soundId = soundPool.load(ApplicationProvider.getApplicationContext(), R.raw.sound, 1); in playedSoundsFromResourcesAreRecorded() local
46 soundPool.play(soundId, 1.0f, 1.0f, 1, 0, 1); in playedSoundsFromResourcesAreRecorded()
55 int soundId = soundPool.load(ApplicationProvider.getApplicationContext(), R.raw.sound, 1); in playedSoundsFromResourcesAreCollected() local
56 soundPool.play(soundId, 1.0f, 0f, 0, 0, 0.5f); in playedSoundsFromResourcesAreCollected()
57 soundPool.play(soundId, 0f, 1.0f, 1, 0, 2.0f); in playedSoundsFromResourcesAreCollected()
61 new Playback(soundId, 1.0f, 0f, 0, 0, 0.5f), in playedSoundsFromResourcesAreCollected()
62 new Playback(soundId, 0f, 1.0f, 1, 0, 2.0f)) in playedSoundsFromResourcesAreCollected()
70 int soundId = soundPool.load("/mnt/sdcard/sound.wav", 1); in playedSoundsFromPathAreRecorded() local
71 soundPool.play(soundId, 1.0f, 1.0f, 1, 0, 1); in playedSoundsFromPathAreRecorded()
80 int soundId = soundPool.load("/mnt/sdcard/sound.wav", 1); in playedSoundsFromPathAreCollected() local
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DSoundSystem.java71 result.soundId = mSoundPool.load(context, resource, 1); in load()
85 stream = mSoundPool.play(sound.soundId, 1.0f, 1.0f, priority, loop ? -1 : 0, 1.0f); in play()
97 stream = mSoundPool.play(sound.soundId, volume, volume, priority, loop ? -1 : 0, rate); in play()
177 public int soundId; field in SoundSystem.Sound