Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/src/pc/audio/audio_null.c
7861 views
1
#include "macros.h"
2
#include "audio_api.h"
3
4
static bool audio_null_init(void) {
5
return true;
6
}
7
8
static int audio_null_buffered(void) {
9
return 0;
10
}
11
12
static int audio_null_get_desired_buffered(void) {
13
return 0;
14
}
15
16
static void audio_null_play(UNUSED const uint8_t *buf, UNUSED size_t len) {
17
}
18
19
struct AudioAPI audio_null = {
20
audio_null_init,
21
audio_null_buffered,
22
audio_null_get_desired_buffered,
23
audio_null_play
24
};
25
26