From 1247fb8f7c05f5553b81970ad5965799f618801a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 24 Feb 2019 15:07:39 +0100 Subject: [PATCH] portaudio: fix compile --- platform/posix/btstack_audio_portaudio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/posix/btstack_audio_portaudio.c b/platform/posix/btstack_audio_portaudio.c index 86a1e832e..253dcec96 100644 --- a/platform/posix/btstack_audio_portaudio.c +++ b/platform/posix/btstack_audio_portaudio.c @@ -395,7 +395,7 @@ static void btstack_audio_portaudio_sink_close(void){ btstack_audio_portaudio_sink_stop_stream(); } - err = Pa_CloseStream(stream_sink); + PaError err = Pa_CloseStream(stream_sink); if (err != paNoError){ log_error("Error closing the stream: \"%s\"", Pa_GetErrorText(err)); return; @@ -414,7 +414,7 @@ static void btstack_audio_portaudio_source_close(void){ btstack_audio_portaudio_sink_stop_stream(); } - err = Pa_CloseStream(stream_source); + PaError err = Pa_CloseStream(stream_source); if (err != paNoError){ log_error("Error closing the stream: \"%s\"", Pa_GetErrorText(err)); return; @@ -427,14 +427,14 @@ static void btstack_audio_portaudio_source_close(void){ static const btstack_audio_sink_t btstack_audio_portaudio_sink = { /* int (*init)(..);*/ &btstack_audio_portaudio_sink_init, /* void (*start_stream(void));*/ &btstack_audio_portaudio_sink_start_stream, - /* void (*stop_stream)(void) */ &btstack_audio_portaudio_sink_stop_stream; + /* void (*stop_stream)(void) */ &btstack_audio_portaudio_sink_stop_stream, /* void (*close)(void); */ &btstack_audio_portaudio_sink_close }; static const btstack_audio_source_t btstack_audio_portaudio_source = { /* int (*init)(..);*/ &btstack_audio_portaudio_source_init, /* void (*start_stream(void));*/ &btstack_audio_portaudio_source_start_stream, - /* void (*stop_stream)(void) */ &btstack_audio_portaudio_source_stop_stream; + /* void (*stop_stream)(void) */ &btstack_audio_portaudio_source_stop_stream, /* void (*close)(void); */ &btstack_audio_portaudio_source_close };