2021-02-24 20:02:43 +00:00
|
|
|
#include "include/multicore.h"
|
2021-03-04 21:38:51 +00:00
|
|
|
#include "include/audio.h"
|
2021-02-24 20:02:43 +00:00
|
|
|
|
|
|
|
void snd_core(void)
|
|
|
|
{
|
|
|
|
clear_core2();
|
|
|
|
|
2021-03-04 21:38:51 +00:00
|
|
|
// Initialise the audio
|
|
|
|
audio_init();
|
|
|
|
|
|
|
|
// Write data out to FIFO and loop infinitely
|
2021-02-24 20:02:43 +00:00
|
|
|
|
|
|
|
extern unsigned char _binary_bin_audio_bin_start[];
|
|
|
|
extern unsigned char _binary_bin_audio_bin_size[];
|
|
|
|
|
|
|
|
unsigned int size = (long)&_binary_bin_audio_bin_size;
|
|
|
|
unsigned char *data = &(_binary_bin_audio_bin_start[0]);
|
|
|
|
|
2021-03-04 21:38:51 +00:00
|
|
|
while (1) audio_play_cpu(data, size);
|
2021-02-24 20:02:43 +00:00
|
|
|
}
|