summaryrefslogtreecommitdiff
path: root/in_practice/breakout/audio.h
blob: 71b232fa38d0d559336b89f9c930d1c0009abd30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef AUDIO_H
#define AUDIO_H

#include "types.h"

struct sound {
	u8 *data;
	u32 size;
	const char *name;
	i32 loop;
};

#define max_sounds 8
extern struct sound sounds[max_sounds];

i32 get_sound(const char *name);

#endif