Explorar el Código

update to new API

LTVA1 hace 2 años
padre
commit
b5973e65a8
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1 1
      application.fam
  2. 2 1
      sound_engine/sound_engine.c

+ 1 - 1
application.fam

@@ -12,5 +12,5 @@ App(
     fap_weburl="https://github.com/LTVA1/flizzer_tracker",
 	fap_icon="flizzer_tracker.png",
 	fap_icon_assets="images",
-    fap_category="Music",
+    fap_category="Media",
 )

+ 2 - 1
sound_engine/sound_engine.c

@@ -195,6 +195,7 @@ void sound_engine_fill_buffer(
             }
         }
 
-        audio_buffer[i] = output / (int32_t)(64 * 4);
+        //audio_buffer[i] = output / (64 * 4);
+        audio_buffer[i] = output >> 8;
     }
 }