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());
}
}
if (size == 0)
{
- logWarning("decoded no bytes from %s", getName().c_str());
+ logWarning << "decoded no bytes from "
+ << getName() << std::endl;
return;
}