Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
 
2
#ifndef BACKEND_H
3
#define BACKEND_H
4
 
5
#include "s3_defs.h"
6
 
7
typedef enum tAudioBackend_error_code {
8
    eAB_success = 0,
9
    eAB_error = 1
10
} tAudioBackend_error_code;
11
 
12
tAudioBackend_error_code AudioBackend_Init(void);
13
tAudioBackend_error_code AudioBackend_InitCDA(void);
14
void AudioBackend_UnInit(void);
15
void AudioBackend_UnInitCDA(void);
16
void* AudioBackend_AllocateSampleTypeStruct(void);
17
 
18
// returns 1 if playing, otherwise 0
19
int AudioBackend_SoundIsPlaying(tS3_channel* chan);
20
tAudioBackend_error_code AudioBackend_StopSample(tS3_channel* chan);
21
tAudioBackend_error_code AudioBackend_PlaySample(tS3_channel* chan);
22
tAudioBackend_error_code AudioBackend_SetVolume(tS3_channel* chan, int volume);
23
tAudioBackend_error_code AudioBackend_SetPan(tS3_channel* chan, int pan);
24
tAudioBackend_error_code AudioBackend_SetFrequency(tS3_channel* chan, int rate);
25
 
26
#endif