freeaudioglue.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // freeaudioglue.h
  2. // version 0.2
  3. // freeware cross platform audio engine sponsored by Blitz Research Ltd
  4. // 2004.02.07 initial 0.1 release SA
  5. // 2004.03.02 channel management handling added SA
  6. #ifndef freeaudioglue_h
  7. #define freeaudioglue_h
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif /* __cplusplus */
  11. int fa_Reset(struct audiodevice *device);
  12. int fa_Close();
  13. int fa_CreateSound(int samples,int bits,int channels,int freq,const char *buf,int loop);
  14. int fa_WriteSound( int sound, void *data, int samples);
  15. int fa_FreeSound( int sound );
  16. int fa_PlaySound( int sound,int paused,int channel );
  17. int fa_AllocChannel();
  18. void fa_FreeChannel( int channel );
  19. int fa_ChannelStatus( int channel );
  20. int fa_StopChannel( int channel );
  21. int fa_SetChannelPaused( int channel,int paused );
  22. int fa_SetChannelVolume( int channel,float volume );
  23. int fa_SetChannelRate( int channel,float hertz );
  24. int fa_SetChannelPan( int channel,float pan );
  25. int fa_SetChannelDepth( int channel,float depth );
  26. int fa_ChannelPosition( int channel );
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif