FUNCTION.H (2369B)
1 // 2 // Copyright 2020 Electronic Arts Inc. 3 // 4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 5 // software: you can redistribute it and/or modify it under the terms of 6 // the GNU General Public License as published by the Free Software Foundation, 7 // either version 3 of the License, or (at your option) any later version. 8 9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 10 // in the hope that it will be useful, but with permitted additional restrictions 11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 12 // distributed with this program. You should have received a copy of the 13 // GNU General Public License along with permitted additional restrictions 14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection 15 16 17 /*=========================================================================*/ 18 /* The following prototypes are for the file: SOUNDIO.CPP */ 19 /*=========================================================================*/ 20 21 short Decompress_Frame(void * source, void * dest, short size); 22 int __cdecl Stream_Sample_Vol(void *buffer, long size, BOOL (*callback); 23 int __cdecl Stream_Sample(void *buffer, long size, BOOL (*callback); 24 int __cdecl File_Stream_Sample(char const *filename); 25 int __cdecl File_Stream_Sample_Vol(char const *filename, int volume); 26 void __cdecl _saveregs _loadds Sound_Callback(void); 27 void __cdecl far _saveregs _loadds maintenance_callback(void); 28 void __cdecl Load_Sample(char const *filename); 29 long __cdecl Load_Sample_Into_Buffer(char const *filename, void *buffer, long size); 30 long __cdecl Sample_Read(int fh, void *buffer, long size); 31 void __cdecl Free_Sample(void const *sample); 32 BOOL __cdecl Sound_Init(int sfx, int score, int sample); 33 void far VQA_TimerCallback(void); 34 BOOL Audio_Init(int sample, int address, int inter, int dma); 35 void __cdecl Sound_End(void); 36 void __cdecl Stop_Sample(int handle); 37 BOOL __cdecl Sample_Status(int handle); 38 BOOL __cdecl Is_Sample_Playing(void const * sample); 39 void __cdecl Stop_Sample_Playing(void const * sample); 40 int __cdecl Play_Sample(void const *sample); 41 int __cdecl Play_Sample_Vol(void const *sample, int priority, int volume); 42 int __cdecl Set_Sound_Vol(int volume); 43 int __cdecl Set_Score_Vol(int volume); 44 void __cdecl Fade_Sample(int handle, int ticks);