aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/src/voice_processor_native.cpp
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2021-05-01 17:27:55 +0200
committerMarvin W <git@larma.de>2021-05-01 17:27:55 +0200
commit0409f554268c0e8f24e23e471a94de4d3a035ff1 (patch)
tree2b82ddcfaec3687703448f89a5b28dbfa3ece6e9 /plugins/rtp/src/voice_processor_native.cpp
parentd388525fc69ab688a90f19d2d2499e0f6f10f573 (diff)
downloaddino-0409f554268c0e8f24e23e471a94de4d3a035ff1.tar.gz
dino-0409f554268c0e8f24e23e471a94de4d3a035ff1.zip
Fix webcam framerate selection
Diffstat (limited to 'plugins/rtp/src/voice_processor_native.cpp')
-rw-r--r--plugins/rtp/src/voice_processor_native.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/rtp/src/voice_processor_native.cpp b/plugins/rtp/src/voice_processor_native.cpp
index 9b3292b8..00f719e1 100644
--- a/plugins/rtp/src/voice_processor_native.cpp
+++ b/plugins/rtp/src/voice_processor_native.cpp
@@ -75,7 +75,7 @@ dino_plugins_rtp_voice_processor_analyze_reverse_stream(void *native_ptr, GstAud
memcpy(frame.data_, audio_buffer.planes[0], frame.samples_per_channel_ * info->bpf);
int err = apm->AnalyzeReverseStream(&frame);
- if (err < 0) g_warning("ProcessReverseStream %i", err);
+ if (err < 0) g_warning("voice_processor_native.cpp: ProcessReverseStream %i", err);
gst_audio_buffer_unmap(&audio_buffer);
}
@@ -108,7 +108,7 @@ extern "C" void dino_plugins_rtp_voice_processor_adjust_stream_delay(void *nativ
g_debug("voice_processor_native.cpp: Stream delay metrics: %i %i %f", median, std, fraction_poor_delays);
if (fraction_poor_delays > 0.5) {
native->stream_delay = std::max(0, native->stream_delay + std::min(-10, std::max(median, 10)));
- g_debug("Adjusted stream delay %i", native->stream_delay);
+ g_debug("voice_processor_native.cpp: Adjusted stream delay %i", native->stream_delay);
}
}
@@ -130,7 +130,7 @@ dino_plugins_rtp_voice_processor_process_stream(void *native_ptr, GstAudioInfo *
apm->set_stream_delay_ms(native->stream_delay);
int err = apm->ProcessStream(&frame);
if (err >= 0) memcpy(audio_buffer.planes[0], frame.data_, frame.samples_per_channel_ * info->bpf);
- if (err < 0) g_warning("ProcessStream %i", err);
+ if (err < 0) g_warning("voice_processor_native.cpp: ProcessStream %i", err);
gst_audio_buffer_unmap(&audio_buffer);
}