载入中...
搜索中...
未找到
Sound.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/Module.h"
6#include "common/Data.h"
7
8namespace eve {
9namespace sound {
10
11class Decoder;
12class SoundData;
13
19public:
21
23 Sound();
25 ~Sound() override;
26
35 Decoder *newDecoder(Data *data, int bufferSize = 16384);
37 SoundData *newSoundData(Data *data);
39 SoundData *newSoundDataFromDecoder(Decoder *decoder);
48 SoundData *newSoundDataFromFile(std::string path);
50 SoundData *newSoundDataEmpty(int samples, int rate, int bitDepth, int channels);
51};
52
53} // namespace sound
54} // namespace eve
std::map< std::string, std::vector< Key >, std::less<> > channels
#define EVENGINE_API_PLATFORM
Definition Export.h:107
std::string path
Definition PlayHost.cpp:111
Data public API.
Definition Data.h:8
EVENGINE_API_FOUNDATION public API.
Definition Module.h:48
Streaming audio decoder (medialoader-backed). Native builds own encoded bytes and decode incrementall...
Definition Decoder.h:23
Raw PCM audio buffer with format metadata (samples/rate/bit depth/channels).
Definition SoundData.h:15
Sound module: decodes compressed audio and produces SoundData buffers. Script: sound <- eve....
Definition Sound.h:18
~Sound() override
Sound.
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16