| version 1.6 | | version 1.7 |
|---|
| | |
| | | |
| SoundSlots[slot].soundno = soundnum; | | SoundSlots[slot].soundno = soundnum; |
| SoundSlots[slot].samples = Sounddat(soundnum)->data; | | SoundSlots[slot].samples = Sounddat(soundnum)->data; |
| SoundSlots[slot].length = Sounddat[soundnum].length; | | SoundSlots[slot].length = Sounddat(soundnum)->length; |
| SoundSlots[slot].volume = fixmul(digi_volume, volume); | | SoundSlots[slot].volume = fixmul(digi_volume, volume); |
| SoundSlots[slot].pan = pan; | | SoundSlots[slot].pan = pan; |
| SoundSlots[slot].position = 0; | | SoundSlots[slot].position = 0; |
| | |
| { | | { |
| int i,volume,pan; | | int i,volume,pan; |
| object * objp; | | object * objp; |
| int soundnum; | | |
| | | |
| if ( max_volume < 0 ) | | if ( max_volume < 0 ) |
| return -1; | | return -1; |
| | |
| return -1; | | return -1; |
| if (!digi_initialised) | | if (!digi_initialised) |
| return -1; | | return -1; |
| if (digi_sound_xlat(soundnum) < 0) | | if (digi_xlat_sound(soundnum) < 0) |
| return -1; | | return -1; |
| if (Sounddat(soundnum)->data==NULL) | | if (Sounddat(soundnum)->data==NULL) |
| { | | { |