(20111213)
This commit is contained in:
41
Audio.h
Normal file
41
Audio.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef _AUDIO_H_
|
||||
#define _AUDIO_H_
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
// Audio_Init
|
||||
//
|
||||
// Initializes the game audio.
|
||||
int Audio_Init();
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
// Audio_Frame
|
||||
//
|
||||
// Notify a frame update to the audio subsystem.
|
||||
void Audio_Frame();
|
||||
|
||||
|
||||
////////////////////////////////////////////////
|
||||
// AudioSnd //
|
||||
//////////////
|
||||
// Reference to a sound.
|
||||
typedef void *AudioSnd;
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
// Audio_LoadSound
|
||||
//
|
||||
// Loads a sound, giving a reference.
|
||||
AudioSnd Audio_LoadSound(char *filename);
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
// Audio_PlaySound
|
||||
//
|
||||
// Loads a sound, giving a reference.
|
||||
void Audio_PlaySound(AudioSnd snd,
|
||||
float leftvol, float rightvol);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user