Minicraft3DS/source/Sound.h
Andre Schweiger ccdb63fb1e Rework connected tile rendering
Might drop FPS to about 50 in certain special circumstances on o3DS
2015-12-28 22:20:20 +01:00

34 lines
No EOL
556 B
C

#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <3ds.h>
typedef struct {
u32 size;
u8 * buffer;
} Sound;
void loadSound(Sound * snd, char * filename);
void playSound(Sound snd);
void playMusic(Sound snd);
void updateMusic(int lvl);
void loadSounds();
void freeSounds();
Sound snd_playerHurt;
Sound snd_playerDeath;
Sound snd_monsterHurt;
Sound snd_test;
Sound snd_pickup;
Sound snd_bossdeath;
Sound snd_craft;
Sound music_menu;
Sound music_floor0;
Sound music_floor1;
Sound music_floor23;
Sound music_floor4;