4b825dc642cb6eb9a060e54bf8d69288fbee4904ebd360ec63ec976c05699f3180e866b3f69e5472
 
 
1
#ifndef _bh_snds_h
 
 
2
#define _bh_snds_h
 
 
3
 
 
 
4
typedef struct sound_tools_template
 
 
5
{
 
 
6
    VECTORCH position;
 
 
7
    uint32_t inner_range;
 
 
8
    uint32_t outer_range;
 
 
9
    uint32_t max_volume;
 
 
10
    uint32_t pitch;
 
 
11
    unsigned int playing :1;
 
 
12
    unsigned int loop :1;
 
 
13
    char * sound_name;
 
 
14
    int sound_number;
 
 
15
 
 
 
16
} SOUND_TOOLS_TEMPLATE;
 
 
17
 
 
 
18
typedef struct sound_behav_block
 
 
19
{
 
 
20
    VECTORCH position;
 
 
21
    uint32_t inner_range;
 
 
22
    uint32_t outer_range;
 
 
23
    int max_volume;
 
 
24
    int    pitch;
 
 
25
    int activ_no;
 
 
26
    char * wav_name;
 
 
27
    int sound_number;
 
 
28
    int sound_not_started;
 
 
29
    unsigned int playing :1;
 
 
30
    unsigned int loop :1;
 
 
31
 
 
 
32
} SOUND_BEHAV_BLOCK;
 
 
33
 
 
 
34
void SoundBehaveInit(void* bhdata, STRATEGYBLOCK* sbptr);
 
 
35
void SoundBehaveFun (STRATEGYBLOCK * );
 
 
36
void StartPlacedSoundPlaying(STRATEGYBLOCK* sbptr);
 
 
37
void StopPlacedSoundPlaying(STRATEGYBLOCK* sbptr);
 
 
38
 
 
 
39
#endif