taisei/src/audio.h
laochailan 88a77b3fb8 sound system added
load_textures() was changed to load_resources() and will now load all sounds in sfx/. playing via play_sound(char *name) (or the pointer variant). positional audio is not implemented yet.

and some other changes.
2011-04-02 12:14:37 +02:00

30 lines
No EOL
503 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;
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