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