taisei/src/resource/audio.h
laochailan b0dbe755f9 Improved youmu homing
also:
+ master spark sound
* only one of a sound per frame
* references are more efficient
2011-07-07 14:34:30 +02:00

32 lines
No EOL
525 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
*/
#ifndef AUDIO_H
#define AUDIO_H
#include <AL/alut.h>
struct Sound;
typedef struct Sound {
struct Sound *next;
struct Sound *prev;
int lastplayframe;
ALuint alsnd;
char *name;
} Sound;
Sound *load_sound(char *filename);
void play_sound(char *name);
void play_sound_p(Sound *snd);
Sound *get_snd(char *name);
void delete_sounds();
#endif