From 250e30d73f09e9da2b5a81d0fbae63744ae12a73 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Apr 2019 08:47:15 +0800 Subject: *misc --- source/libs/asura-lib-openal/sound.cpp | 0 source/libs/asura-lib-openal/sound.h | 31 ++++++++++++++++++++++ source/libs/asura-lib-openal/sound_decode_task.cpp | 0 source/libs/asura-lib-openal/sound_decode_task.h | 25 +++++++++++++++++ source/libs/asura-lib-openal/sound_decoder.cpp | 29 ++++++++++++++++++++ source/libs/asura-lib-openal/sound_decoder.h | 30 +++++++++++++++++++++ 6 files changed, 115 insertions(+) create mode 100644 source/libs/asura-lib-openal/sound.cpp create mode 100644 source/libs/asura-lib-openal/sound.h create mode 100644 source/libs/asura-lib-openal/sound_decode_task.cpp create mode 100644 source/libs/asura-lib-openal/sound_decode_task.h create mode 100644 source/libs/asura-lib-openal/sound_decoder.cpp create mode 100644 source/libs/asura-lib-openal/sound_decoder.h (limited to 'source/libs/asura-lib-openal') diff --git a/source/libs/asura-lib-openal/sound.cpp b/source/libs/asura-lib-openal/sound.cpp new file mode 100644 index 0000000..e69de29 diff --git a/source/libs/asura-lib-openal/sound.h b/source/libs/asura-lib-openal/sound.h new file mode 100644 index 0000000..6c2d7c2 --- /dev/null +++ b/source/libs/asura-lib-openal/sound.h @@ -0,0 +1,31 @@ +#ifndef __ASURA_ENGINE_SOUND_H__ +#define __ASURA_ENGINE_SOUND_H__ + +#include + +namespace AsuraEngine +{ + namespace Audio + { + + /// + /// 音频文件 + /// + class Sound ASURA_FINAL + : public AEScripting::Portable + { + public: + + Sound(); + ~Sound(); + + private: + + + + }; + + } +} + +#endif \ No newline at end of file diff --git a/source/libs/asura-lib-openal/sound_decode_task.cpp b/source/libs/asura-lib-openal/sound_decode_task.cpp new file mode 100644 index 0000000..e69de29 diff --git a/source/libs/asura-lib-openal/sound_decode_task.h b/source/libs/asura-lib-openal/sound_decode_task.h new file mode 100644 index 0000000..d39013f --- /dev/null +++ b/source/libs/asura-lib-openal/sound_decode_task.h @@ -0,0 +1,25 @@ +#ifndef __ASURA_OPENAL_SOUND_DECODER_TASK_H__ +#define __ASURA_OPENAL_SOUND_DECODER_TASK_H__ + +#include + +namespace AsuraEngine +{ + namespace OpenAL + { + + /// + /// 解析音频文件任务。 + /// + class SoundDecodeTask : public AEThreading::ThreadTask + { + public: + + private: + + }; + + } +} + +#endif \ No newline at end of file diff --git a/source/libs/asura-lib-openal/sound_decoder.cpp b/source/libs/asura-lib-openal/sound_decoder.cpp new file mode 100644 index 0000000..ad9f761 --- /dev/null +++ b/source/libs/asura-lib-openal/sound_decoder.cpp @@ -0,0 +1,29 @@ +#ifndef __ASURA_ENGINE_SOUND_DECODER_H__ +#define __ASURA_ENGINE_SOUND_DECODER_H__ + +#include "Sound.h" +#include "FileSystem/DataBuffer.h" + +namespace AsuraEngine +{ + namespace Audio + { + + /// + /// 解析音频文件 + /// + class SoundDecoder + { + public: + + SoundDecoder(); + virtual ~SoundDecoder(); + + virtual Sound* Decode(const Filesystem::DataBuffer* db); + + }; + + } +} + +#endif \ No newline at end of file diff --git a/source/libs/asura-lib-openal/sound_decoder.h b/source/libs/asura-lib-openal/sound_decoder.h new file mode 100644 index 0000000..2a3f087 --- /dev/null +++ b/source/libs/asura-lib-openal/sound_decoder.h @@ -0,0 +1,30 @@ +#ifndef __ASURA_ENGINE_SOUND_DECODER_H__ +#define __ASURA_ENGINE_SOUND_DECODER_H__ + +#include + +#include "sound.h" + +namespace AsuraEngine +{ + namespace Audio + { + + /// + /// 解析音频文件 + /// + class SoundDecoder + { + public: + + SoundDecoder(); + virtual ~SoundDecoder(); + + virtual Sound* Decode(const AEIO::DataBuffer* db); + + }; + + } +} + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0