| | 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 |