Loading services/core/java/com/android/server/audio/AudioService.java +9 −2 Original line number Original line Diff line number Diff line Loading @@ -855,8 +855,7 @@ public class AudioService extends IAudioService.Stub public void onSystemReady() { public void onSystemReady() { mSystemReady = true; mSystemReady = true; sendMsg(mAudioHandler, MSG_LOAD_SOUND_EFFECTS, SENDMSG_QUEUE, scheduleLoadSoundEffects(); 0, 0, null, 0); mDeviceBroker.onSystemReady(); mDeviceBroker.onSystemReady(); Loading Loading @@ -3224,6 +3223,14 @@ public class AudioService extends IAudioService.Stub return (reply.mStatus == 0); return (reply.mStatus == 0); } } /** * Schedule loading samples into the soundpool. * This method can be overridden to schedule loading at a later time. */ protected void scheduleLoadSoundEffects() { sendMsg(mAudioHandler, MSG_LOAD_SOUND_EFFECTS, SENDMSG_QUEUE, 0, 0, null, 0); } /** /** * Unloads samples from the sound pool. * Unloads samples from the sound pool. * This method can be called to free some memory when * This method can be called to free some memory when Loading Loading
services/core/java/com/android/server/audio/AudioService.java +9 −2 Original line number Original line Diff line number Diff line Loading @@ -855,8 +855,7 @@ public class AudioService extends IAudioService.Stub public void onSystemReady() { public void onSystemReady() { mSystemReady = true; mSystemReady = true; sendMsg(mAudioHandler, MSG_LOAD_SOUND_EFFECTS, SENDMSG_QUEUE, scheduleLoadSoundEffects(); 0, 0, null, 0); mDeviceBroker.onSystemReady(); mDeviceBroker.onSystemReady(); Loading Loading @@ -3224,6 +3223,14 @@ public class AudioService extends IAudioService.Stub return (reply.mStatus == 0); return (reply.mStatus == 0); } } /** * Schedule loading samples into the soundpool. * This method can be overridden to schedule loading at a later time. */ protected void scheduleLoadSoundEffects() { sendMsg(mAudioHandler, MSG_LOAD_SOUND_EFFECTS, SENDMSG_QUEUE, 0, 0, null, 0); } /** /** * Unloads samples from the sound pool. * Unloads samples from the sound pool. * This method can be called to free some memory when * This method can be called to free some memory when Loading