/
sound_sdlmix.h
86 lines (62 loc) · 1.56 KB
/
sound_sdlmix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
* See Licensing and Copyright notice in naev.h
*/
#if USE_SDLMIX
#ifndef SOUND_SDLMIX_H
# define SOUND_SDLMIX_H
#include "sound.h"
#include "sound_priv.h"
/*
* Creation.
*/
int sound_mix_init (void);
void sound_mix_exit (void);
/*
* Sound creation.
*/
int sound_mix_load( alSound *snd, const char *filename );
void sound_mix_free( alSound *snd );
/*
* Sound settings.
*/
int sound_mix_volume( const double vol );
double sound_mix_getVolume (void);
/*
* Sound playing.
*/
int sound_mix_play( alVoice *v, alSound *s );
int sound_mix_playPos( alVoice *v, alSound *s,
double px, double py, double vx, double vy );
int sound_mix_updatePos( alVoice *v,
double px, double py, double vx, double vy );
void sound_mix_updateVoice( alVoice *v );
/*
* Sound management.
*/
void sound_mix_update (void);
void sound_mix_stop( alVoice *v );
void sound_mix_pause (void);
void sound_mix_resume (void);
void sound_mix_setSpeed( double s );
void sound_mix_setSpeedVolume( double vol );
/*
* Listener.
*/
int sound_mix_updateListener( double dir, double px, double py,
double vx, double vy );
/*
* Groups.
*/
int sound_mix_createGroup( int size );
int sound_mix_playGroup( int group, alSound *s, int once );
void sound_mix_stopGroup( int group );
void sound_mix_pauseGroup( int group );
void sound_mix_resumeGroup( int group );
void sound_mix_speedGroup( int group, int enable );
void sound_mix_volumeGroup( int group, double volume );
/*
* Env.
*/
int sound_mix_env( SoundEnv_t env, double param );
#endif /* SOUND_SDLMIX_H */
#endif /* USE_SDLMIX */