nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
sd_card_playback.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _SD_CARD_PLAYBACK_H_
8#define _SD_CARD_PLAYBACK_H_
9
17#include <zephyr/kernel.h>
18
26
38int sd_card_playback_wav(char *filename);
39
51int sd_card_playback_lc3(char *filename);
52
63int sd_card_playback_mix_with_stream(void *const pcm_a, size_t pcm_a_size);
64
71
76#endif /* _SD_CARD_PLAYBACK_H_ */
int sd_card_playback_lc3(char *filename)
Play audio from an LC3 file from the SD card.
int sd_card_playback_init(void)
Initialize the SD card playback module. Create the SD card playback thread.
bool sd_card_playback_is_active(void)
Check whether or not the SD card playback module is active.
int sd_card_playback_mix_with_stream(void *const pcm_a, size_t pcm_a_size)
Mix the PCM data from the SD card playback module with the audio stream out.
int sd_card_playback_wav(char *filename)
Play audio from a WAV file from the SD card. Only support for mono files.