Noise Nugget SDK
noise_nugget.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 Fabien Chouteau @ Wee Noise Makers
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
16 #pragma once
17 #include <stdint.h>
18 #include <stdbool.h>
19 
42 typedef void (*audio_cb_t)(uint32_t **buffer, uint32_t *stereo_point_count);
43 
61 bool audio_init(int sample_rate,
62  audio_cb_t output_callback,
63  audio_cb_t input_callback);
void(* audio_cb_t)(uint32_t **buffer, uint32_t *stereo_point_count)
Defines a callback type for audio processing.
Definition: noise_nugget.h:42
bool audio_init(int sample_rate, audio_cb_t output_callback, audio_cb_t input_callback)
Initializes the audio system of the Noise Nugget board.
Definition: noise_nugget.c:248