Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1428)

Unified Diff: runtime/embedders/openglui/common/sound_handler.h

Issue 13042015: Various OpenGLUI changes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
}

Powered by Google App Engine
This is Rietveld 408576698