1 /* 2 3 Copyright (C) 2015-2018 Night Dive Studios, LLC. 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 */ 19 /* 20 * $Source: r:/prj/cit/src/RCS/sndcall.c $ 21 * $Revision: 1.2 $ 22 * $Author: dc $ 23 * $Date: 1994/11/28 08:31:43 $ 24 */ 25 26 #include "musicai.h" 27 //#include "citmusic.h" 28 #include "faketime.h" 29 30 #define __SNDCALL_SRC 31 32 #define MAX_UNLOCK 32 33 int rulock_list[MAX_UNLOCK]; 34 int rulock_ptr = 0; 35 36 void sound_frame_update(void); 37 38 /* KLC - not used in Mac version. 39 void cdecl simple_xmi_stop(snd_midi_parms *seq) 40 { 41 // if (seq->snd_ref==0xc1c1) 42 Free(seq->data); 43 mono_ch(60,'A'+tmp); 44 tlc(tmp=(tmp+1)&0xf); 45 mono_ch(61,'a'+simple_xmi_sound_on); 46 simple_xmi_sound_on--; 47 } 48 */ 49 digifx_EOS_callback(snd_digi_parms * sdp)50void digifx_EOS_callback(snd_digi_parms *sdp) { 51 /*if (sdp->snd_ref>0x10) 52 if (rulock_ptr<MAX_UNLOCK-1) 53 rulock_list[rulock_ptr++]=sdp->snd_ref;*/ 54 } 55 sound_frame_update(void)56void sound_frame_update(void) { 57 int i; 58 snd_digi_parms *sdp; 59 extern uchar set_sample_pan_gain(snd_digi_parms * sdp); 60 61 for (i = 0; i < SND_MAX_SAMPLES; i++) { 62 snd_digi_parms *sdp = snd_sample_parms(i); 63 if (set_sample_pan_gain(sdp)) 64 snd_end_sample(i); 65 } 66 } 67