]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Sound.cc
stream-based logging classes
[chaz/yoink] / src / Moof / Sound.cc
index 3aec3f6aa90aa85f4c0f40936508a6ae01a2fff7..b91158a591e318fae4dba1e0ac03aa8ca5871e72 100644 (file)
@@ -97,8 +97,8 @@ public:
 
                        if (result < 0)
                        {
-                               logWarning("error while loading sound %s",
-                                               getName().c_str());
+                               logWarning << "error while loading sound "
+                                                  << getName() << std::endl;
                                throw Exception(ErrorCode::UNKNOWN_AUDIO_FORMAT, getName());
                        }
 
@@ -134,7 +134,8 @@ public:
                        }
                        if (size == 0)
                        {
-                               logWarning("decoded no bytes from %s", getName().c_str());
+                               logWarning << "decoded no bytes from "
+                                                  << getName() << std::endl;
                                return;
                        }
 
This page took 0.016864 seconds and 4 git commands to generate.