| Index: runtime/embedders/openglui/common/sound_handler.cc
|
| ===================================================================
|
| --- runtime/embedders/openglui/common/sound_handler.cc (revision 20570)
|
| +++ runtime/embedders/openglui/common/sound_handler.cc (working copy)
|
| @@ -12,6 +12,7 @@
|
|
|
| SoundHandler::SoundHandler()
|
| : samples_() {
|
| + instance_ = this;
|
| }
|
|
|
| Sample* SoundHandler::GetSample(const char* path) {
|
| @@ -20,6 +21,7 @@
|
| ++sp) {
|
| Sample* sample = (*sp);
|
| if (strcmp(sample->path(), path) == 0) {
|
| + LOGI("Returning cached sample %s", path);
|
| return sample;
|
| }
|
| }
|
| @@ -30,6 +32,7 @@
|
| return NULL;
|
| }
|
| samples_.push_back(sample);
|
| + LOGI("Adding sample %s to cache", path);
|
| return sample;
|
| }
|
|
|
|
|