mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
AudioCommon: Migrate logging over to fmt
printf specifiers, begone!
This commit is contained in:
@ -38,7 +38,7 @@ static void DestroyContext(cubeb* ctx)
|
||||
cubeb_destroy(ctx);
|
||||
if (cubeb_set_log_callback(CUBEB_LOG_DISABLED, nullptr) != CUBEB_OK)
|
||||
{
|
||||
ERROR_LOG(AUDIO, "Error removing cubeb log callback");
|
||||
ERROR_LOG_FMT(AUDIO, "Error removing cubeb log callback");
|
||||
}
|
||||
}
|
||||
|
||||
@ -59,16 +59,16 @@ std::shared_ptr<cubeb> CubebUtils::GetContext()
|
||||
}
|
||||
if (cubeb_set_log_callback(CUBEB_LOG_NORMAL, LogCallback) != CUBEB_OK)
|
||||
{
|
||||
ERROR_LOG(AUDIO, "Error setting cubeb log callback");
|
||||
ERROR_LOG_FMT(AUDIO, "Error setting cubeb log callback");
|
||||
}
|
||||
|
||||
cubeb* ctx;
|
||||
if (cubeb_init(&ctx, "Dolphin", nullptr) != CUBEB_OK)
|
||||
{
|
||||
ERROR_LOG(AUDIO, "Error initializing cubeb library");
|
||||
ERROR_LOG_FMT(AUDIO, "Error initializing cubeb library");
|
||||
return nullptr;
|
||||
}
|
||||
INFO_LOG(AUDIO, "Cubeb initialized using %s backend", cubeb_get_backend_id(ctx));
|
||||
INFO_LOG_FMT(AUDIO, "Cubeb initialized using {} backend", cubeb_get_backend_id(ctx));
|
||||
|
||||
weak = shared = {ctx, DestroyContext};
|
||||
return shared;
|
||||
|
Reference in New Issue
Block a user