[client] audio: allow building without any audio support

This commit is contained in:
Geoffrey McRae
2022-01-27 17:57:30 +11:00
parent a7db3d3a0f
commit a560a610d9
4 changed files with 26 additions and 4 deletions

View File

@@ -18,6 +18,8 @@
* Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if ENABLE_AUDIO
#include <stdbool.h>
#include <purespice.h>
@@ -39,3 +41,11 @@ void audio_recordVolume(int channels, const uint16_t volume[]);
void audio_recordMute(bool mute);
void audio_tick(unsigned long long tickCount);
#else
static inline void audio_init(void) {}
static inline void audio_free(void) {}
static inline void audio_tick(unsigned long long tickCount) {}
#endif