FUNCTION.H 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  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. /* The following prototypes are for the file: SOUNDIO.CPP */
  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);