BsOAPrerequisites.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #if (BS_PLATFORM == BS_PLATFORM_WIN32) && !defined(__MINGW32__)
  6. # ifdef BS_OA_EXPORTS
  7. # define BS_OA_EXPORT __declspec(dllexport)
  8. # else
  9. # if defined( __MINGW32__ )
  10. # define BS_OA_EXPORT
  11. # else
  12. # define BS_OA_EXPORT __declspec(dllimport)
  13. # endif
  14. # endif
  15. #elif defined ( BS_GCC_VISIBILITY )
  16. # define BS_OA_EXPORT __attribute__ ((visibility("default")))
  17. #else
  18. # define BS_OA_EXPORT
  19. #endif
  20. namespace BansheeEngine
  21. {
  22. /** Contains data describing an audio file. */
  23. struct AudioFileInfo
  24. {
  25. UINT32 numSamples; /**< Total number of audio samples in the audio data (includes all channels). */
  26. UINT32 sampleRate; /**< Number of audio samples per second, per channel. */
  27. UINT32 numChannels; /**< Number of channels. Each channel has its own set of samples. */
  28. UINT32 bitDepth; /**< Number of bits per sample. */
  29. };
  30. class OAAudioListener;
  31. class OAAudioSource;
  32. }
  33. /** @addtogroup Plugins
  34. * @{
  35. */
  36. /** @defgroup OpenAudio BansheeOpenAudio
  37. * Open source audio implementation using OpenAL, libFLAC and libvorbis.
  38. */
  39. /** @} */