sound.h 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef ERUTA_SOUND_H
  2. #define ERUTA_SOUND_H
  3. #include "eruta.h"
  4. /*
  5. Audio * audio_done (Audio * audio );
  6. Audio * audio_alloc (void);
  7. Audio * audio_init (Audio * audio );
  8. Audio * audio_new (void);
  9. Audio * audio_free (Audio * self );
  10. void audio_stop (void);
  11. BOOL audio_start (void);
  12. BOOL sound_ok (void);
  13. Sound * sound_free (Sound * self );
  14. Sound * sound_load (char * filename );
  15. Music * music_free (Music * self );
  16. Music * music_load (char * filename );
  17. Sound * sound_playback (Sound * sound , float gain , float pan , float speed , BOOL loop );
  18. Sound * sound_play (Sound * sound );
  19. */
  20. /* New api based on "global" state. */
  21. BOOL audio_init();
  22. BOOL audio_done();
  23. int audio_playing_samples_max();
  24. int audio_play_sound_ex
  25. (int store_id, float gain, float pan, float speed, BOOL loop);
  26. int audio_play_sound(int store_id);
  27. BOOL audio_stop_sound(int play_id);
  28. BOOL audio_set_music(int store_id);
  29. BOOL audio_play_music();
  30. BOOL audio_stop_music();
  31. BOOL audio_music_playing_p();
  32. #endif