NO_AUDIO option
[shapestoy] / src / music.c
index 81b98d0..ce4f795 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef NO_AUDIO
+
 #include <stdio.h>
 #include <sys/stat.h>
 #include "music.h"
@@ -195,3 +197,33 @@ static ma_result vinfo(ma_vfs *vfs, ma_vfs_file fp, ma_file_info *inf)
        inf->sizeInBytes = st.st_size;
        return MA_SUCCESS;
 }
+
+#else  /* NO_AUDIO */
+
+int init_music(void)
+{
+       return 0;
+}
+
+void destroy_music(void)
+{
+}
+
+void play_music(void)
+{
+}
+
+void stop_music(void)
+{
+}
+
+void seek_music(long tm)
+{
+}
+
+
+void set_music_volume(float vol)
+{
+}
+
+#endif