SDL_audio_c.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #include "../SDL_internal.h"
  19. /* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */
  20. /* Functions to get a list of "close" audio formats */
  21. extern SDL_AudioFormat SDL_FirstAudioFormat(SDL_AudioFormat format);
  22. extern SDL_AudioFormat SDL_NextAudioFormat(void);
  23. /* Function to calculate the size and silence for a SDL_AudioSpec */
  24. extern void SDL_CalculateAudioSpec(SDL_AudioSpec * spec);
  25. /* The actual mixing thread function */
  26. extern int SDLCALL SDL_RunAudio(void *audiop);
  27. /* this is used internally to access some autogenerated code. */
  28. typedef struct
  29. {
  30. SDL_AudioFormat src_fmt;
  31. SDL_AudioFormat dst_fmt;
  32. SDL_AudioFilter filter;
  33. } SDL_AudioTypeFilters;
  34. extern const SDL_AudioTypeFilters sdl_audio_type_filters[];
  35. /* this is used internally to access some autogenerated code. */
  36. typedef struct
  37. {
  38. SDL_AudioFormat fmt;
  39. int channels;
  40. int upsample;
  41. int multiple;
  42. SDL_AudioFilter filter;
  43. } SDL_AudioRateFilters;
  44. extern const SDL_AudioRateFilters sdl_audio_rate_filters[];
  45. /* vi: set ts=4 sw=4 expandtab: */