From d18905aeb429acd5b5095768a2c6c853821e6fc6 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sun, 7 Sep 2025 11:52:36 +0200 Subject: [PATCH] test: platform: updated mic test to new audio API --- tests/platform/mic_test.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/platform/mic_test.c b/tests/platform/mic_test.c index 9a96fd18..286a7a3a 100644 --- a/tests/platform/mic_test.c +++ b/tests/platform/mic_test.c @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include @@ -38,9 +38,8 @@ int main() stream_sample_t *sampleBuf = ((stream_sample_t *) malloc(numSamples * sizeof(stream_sample_t))); - audio_enableMic(); - streamId id = inputStream_start(SOURCE_MIC, PRIO_TX, sampleBuf, numSamples, - BUF_LINEAR, 8000); + pathId pi = audioPath_request(SOURCE_MIC, SINK_MCU, PRIO_TX); + streamId id = audioStream_start(pi, sampleBuf, numSamples, 8000, BUF_LINEAR | STREAM_INPUT); sleepFor(3u, 0u); platform_ledOn(GREEN);