载入中...
搜索中...
未找到
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
28 Decoder *newDecoder(Data *data, int bufferSize = 16384);
30 SoundData *newSoundData(Data *data);
32 SoundData *newSoundDataFromDecoder(Decoder *decoder);
41 SoundData *newSoundDataFromFile(std::string path);
43 SoundData *newSoundDataEmpty(int samples, int rate, int bitDepth, int channels);
44};
45
46} // namespace sound
47} // 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:110
Data public API.
Definition Data.h:8
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
Streaming audio decoder (medialoader-backed). Owns the raw encoded bytes and decodes incrementally vi...
Definition Decoder.h:22
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