Skip to content

Commit

Permalink
added LILKA_VERSION check to osd_setsound
Browse files Browse the repository at this point in the history
  • Loading branch information
frostmorn committed Mar 24, 2024
1 parent 8810400 commit 0f1ffef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/keira/src/apps/nes/osd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ void do_audio_frame() {
}

void osd_setsound(void (*playfunc)(void* buffer, int length)) {
#if LILKA_VERSION == 1
#elif LILKA_VERSION == 2
audio_callback = playfunc;
xTaskCreatePinnedToCore(
[](void* arg) {
Expand All @@ -227,6 +229,7 @@ void osd_setsound(void (*playfunc)(void* buffer, int length)) {
NULL,
1
);
#endif
}

void osd_getsoundinfo(sndinfo_t* info) {
Expand Down

0 comments on commit 0f1ffef

Please sign in to comment.