| Index: runtime/embedders/openglui/common/sound_handler.h
|
| ===================================================================
|
| --- runtime/embedders/openglui/common/sound_handler.h (revision 20570)
|
| +++ runtime/embedders/openglui/common/sound_handler.h (working copy)
|
| @@ -45,10 +45,14 @@
|
| }
|
|
|
| virtual int32_t PlaySample(const char* path) {
|
| - return 0;
|
| + // Just do a load so we can get logging.
|
| + return (GetSample(path) == NULL) ? -1 : 0;
|
| }
|
|
|
| static SoundHandler* instance() {
|
| + if (instance_ == NULL) {
|
| + return new SoundHandler();
|
| + }
|
| return instance_;
|
| }
|
|
|
|
|