mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-16 16:37:20 +00:00
Update fmtlib
This commit is contained in:
@@ -69,7 +69,7 @@ struct PulseAudioVoiceEngine : LinuxMidi {
|
||||
pa_operation_unref(op);
|
||||
|
||||
if (m_sampleSpec.format == PA_SAMPLE_INVALID) {
|
||||
Log.report(logvisor::Error, fmt("Unable to setup audio stream"));
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to setup audio stream"));
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ struct PulseAudioVoiceEngine : LinuxMidi {
|
||||
m_mixInfo.m_bitsPerSample = 32;
|
||||
m_mixInfo.m_periodFrames = m_5msFrames;
|
||||
if (!(m_stream = pa_stream_new(m_ctx, "master", &m_sampleSpec, &m_chanMap))) {
|
||||
Log.report(logvisor::Error, fmt("Unable to pa_stream_new(): {}"), pa_strerror(pa_context_errno(m_ctx)));
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to pa_stream_new(): {}"), pa_strerror(pa_context_errno(m_ctx)));
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ struct PulseAudioVoiceEngine : LinuxMidi {
|
||||
if (pa_stream_connect_playback(m_stream, m_sinkName.c_str(), &bufAttr,
|
||||
pa_stream_flags_t(PA_STREAM_START_UNMUTED | PA_STREAM_EARLY_REQUESTS), nullptr,
|
||||
nullptr)) {
|
||||
Log.report(logvisor::Error, fmt("Unable to pa_stream_connect_playback()"));
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to pa_stream_connect_playback()"));
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -115,16 +115,16 @@ struct PulseAudioVoiceEngine : LinuxMidi {
|
||||
|
||||
PulseAudioVoiceEngine() {
|
||||
if (!(m_mainloop = pa_mainloop_new())) {
|
||||
Log.report(logvisor::Error, fmt("Unable to pa_mainloop_new()"));
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to pa_mainloop_new()"));
|
||||
return;
|
||||
}
|
||||
|
||||
pa_mainloop_api* mlApi = pa_mainloop_get_api(m_mainloop);
|
||||
pa_proplist* propList = pa_proplist_new();
|
||||
pa_proplist_sets(propList, PA_PROP_APPLICATION_ICON_NAME, APP->getUniqueName().data());
|
||||
pa_proplist_sets(propList, PA_PROP_APPLICATION_PROCESS_ID, fmt::format(fmt("{}"), int(getpid())).c_str());
|
||||
pa_proplist_sets(propList, PA_PROP_APPLICATION_PROCESS_ID, fmt::format(FMT_STRING("{}"), int(getpid())).c_str());
|
||||
if (!(m_ctx = pa_context_new_with_proplist(mlApi, APP->getFriendlyName().data(), propList))) {
|
||||
Log.report(logvisor::Error, fmt("Unable to pa_context_new_with_proplist()"));
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to pa_context_new_with_proplist()"));
|
||||
pa_mainloop_free(m_mainloop);
|
||||
m_mainloop = nullptr;
|
||||
return;
|
||||
@@ -133,7 +133,7 @@ struct PulseAudioVoiceEngine : LinuxMidi {
|
||||
pa_operation* op;
|
||||
|
||||
if (pa_context_connect(m_ctx, nullptr, PA_CONTEXT_NOFLAGS, nullptr)) {
|
||||
Log.report(logvisor::Error, fmt("Unable to pa_context_connect()"));
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to pa_context_connect()"));
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -340,7 +340,7 @@ struct PulseAudioVoiceEngine : LinuxMidi {
|
||||
size_t nbytes = writablePeriods * periodSz;
|
||||
if (pa_stream_begin_write(m_stream, &data, &nbytes)) {
|
||||
pa_stream_state_t st = pa_stream_get_state(m_stream);
|
||||
Log.report(logvisor::Error, fmt("Unable to pa_stream_begin_write(): {} {}"), pa_strerror(pa_context_errno(m_ctx)), st);
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to pa_stream_begin_write(): {} {}"), pa_strerror(pa_context_errno(m_ctx)), st);
|
||||
_doIterate();
|
||||
return;
|
||||
}
|
||||
@@ -349,7 +349,7 @@ struct PulseAudioVoiceEngine : LinuxMidi {
|
||||
_pumpAndMixVoices(m_mixInfo.m_periodFrames * writablePeriods, reinterpret_cast<float*>(data));
|
||||
|
||||
if (pa_stream_write(m_stream, data, nbytes, nullptr, 0, PA_SEEK_RELATIVE))
|
||||
Log.report(logvisor::Error, fmt("Unable to pa_stream_write()"));
|
||||
Log.report(logvisor::Error, FMT_STRING("Unable to pa_stream_write()"));
|
||||
|
||||
_doIterate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user