FUNCTION.H 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. /*=========================================================================*/
  15. /* The following prototypes are for the file: SOUNDIO.CPP */
  16. /*=========================================================================*/
  17. short Decompress_Frame(void * source, void * dest, short size);
  18. int __cdecl Stream_Sample_Vol(void *buffer, long size, BOOL (*callback);
  19. int __cdecl Stream_Sample(void *buffer, long size, BOOL (*callback);
  20. int __cdecl File_Stream_Sample(char const *filename);
  21. int __cdecl File_Stream_Sample_Vol(char const *filename, int volume);
  22. void __cdecl _saveregs _loadds Sound_Callback(void);
  23. void __cdecl far _saveregs _loadds maintenance_callback(void);
  24. void __cdecl Load_Sample(char const *filename);
  25. long __cdecl Load_Sample_Into_Buffer(char const *filename, void *buffer, long size);
  26. long __cdecl Sample_Read(int fh, void *buffer, long size);
  27. void __cdecl Free_Sample(void const *sample);
  28. BOOL __cdecl Sound_Init(int sfx, int score, int sample);
  29. void far VQA_TimerCallback(void);
  30. BOOL Audio_Init(int sample, int address, int inter, int dma);
  31. void __cdecl Sound_End(void);
  32. void __cdecl Stop_Sample(int handle);
  33. BOOL __cdecl Sample_Status(int handle);
  34. BOOL __cdecl Is_Sample_Playing(void const * sample);
  35. void __cdecl Stop_Sample_Playing(void const * sample);
  36. int __cdecl Play_Sample(void const *sample);
  37. int __cdecl Play_Sample_Vol(void const *sample, int priority, int volume);
  38. int __cdecl Set_Sound_Vol(int volume);
  39. int __cdecl Set_Score_Vol(int volume);
  40. void __cdecl Fade_Sample(int handle, int ticks);