MCPcopy Create free account
hub / github.com/Tencent/libpag / AudioSource

Method AudioSource

viewer/src/audio/model/AudioSource.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace pag {
22
23AudioSource::AudioSource(const std::string& filePath) : filePath(filePath) {
24 auto demuxer = ffmovie::FFAudioDemuxer::Make(filePath);
25 this->demuxer = std::move(demuxer);
26}
27
28AudioSource::AudioSource(std::shared_ptr<ByteData> data) : data(data) {
29 auto demuxer = ffmovie::FFAudioDemuxer::Make(data->data(), data->length());

Callers

nothing calls this directly

Calls 3

MakeFunction · 0.50
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected