mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
portaudio: use correct sink/source in init
This commit is contained in:
parent
8ade2a8bf5
commit
3abb6826ec
@ -213,7 +213,7 @@ static int btstack_audio_portaudio_sink_init(
|
|||||||
|
|
||||||
/* -- setup stream -- */
|
/* -- setup stream -- */
|
||||||
err = Pa_OpenStream(
|
err = Pa_OpenStream(
|
||||||
&stream_source,
|
&stream_sink,
|
||||||
NULL,
|
NULL,
|
||||||
&theOutputParameters,
|
&theOutputParameters,
|
||||||
samplerate,
|
samplerate,
|
||||||
@ -228,7 +228,7 @@ static int btstack_audio_portaudio_sink_init(
|
|||||||
}
|
}
|
||||||
log_info("PortAudio: sink stream created");
|
log_info("PortAudio: sink stream created");
|
||||||
|
|
||||||
const PaStreamInfo * stream_info = Pa_GetStreamInfo(stream_source);
|
const PaStreamInfo * stream_info = Pa_GetStreamInfo(stream_sink);
|
||||||
log_info("PortAudio: sink latency: %f", stream_info->outputLatency);
|
log_info("PortAudio: sink latency: %f", stream_info->outputLatency);
|
||||||
|
|
||||||
playback_callback = playback;
|
playback_callback = playback;
|
||||||
@ -277,7 +277,7 @@ static int btstack_audio_portaudio_source_init(
|
|||||||
|
|
||||||
/* -- setup stream -- */
|
/* -- setup stream -- */
|
||||||
err = Pa_OpenStream(
|
err = Pa_OpenStream(
|
||||||
&stream_sink,
|
&stream_source,
|
||||||
&theInputParameters,
|
&theInputParameters,
|
||||||
NULL,
|
NULL,
|
||||||
samplerate,
|
samplerate,
|
||||||
@ -292,7 +292,7 @@ static int btstack_audio_portaudio_source_init(
|
|||||||
}
|
}
|
||||||
log_info("PortAudio: source stream created");
|
log_info("PortAudio: source stream created");
|
||||||
|
|
||||||
const PaStreamInfo * stream_info = Pa_GetStreamInfo(stream_sink);
|
const PaStreamInfo * stream_info = Pa_GetStreamInfo(stream_source);
|
||||||
log_info("PortAudio: source latency: %f", stream_info->inputLatency);
|
log_info("PortAudio: source latency: %f", stream_info->inputLatency);
|
||||||
|
|
||||||
recording_callback = recording;
|
recording_callback = recording;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user