| 123456789101112131415161718192021222324252627282930313233343536 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsModule.h"
- namespace BansheeEngine
- {
- /** @addtogroup Audio
- * @{
- */
- /** Provides global functionality relating to sounds and music. */
- class BS_CORE_EXPORT Audio : public Module<Audio>
- {
- protected:
- friend class AudioClip;
- /**
- * Creates a new audio clip.
- *
- * @param[in] samples Stream containing audio samples in format specified in @p desc.
- * @param[in] numSamples Number of samples in @p samples stream.
- * @param[in] desc Descriptor describing the type of the audio stream (format, sample rate, etc.).
- * @return Newly created AudioClip. Must be manually initialized.
- */
- virtual SPtr<AudioClip> createClip(const SPtr<DataStream>& samples, UINT32 numSamples,
- const AUDIO_CLIP_DESC& desc) = 0;
- };
- /** Provides easier access to Audio. */
- BS_CORE_EXPORT Audio& gAudio();
- /** @} */
- }
|