MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / SMKMusicTrack

Method SMKMusicTrack

framework/video/smk.cpp:350–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348 return track->fillData(maxSamples, sampleBuffer, returnedSamples);
349}
350SMKMusicTrack::SMKMusicTrack(sp<SMKVideo> video)
351 : video(video), current_frame(video->popAudio()), current_frame_sample_position(0)
352{
353 this->format = video->audio_format;
354 this->requestedSampleBufferSize = this->format.frequency / 10;
355 this->callback = fillSMKMusicData;
356}
357
358const UString &SMKMusicTrack::getName() const { return this->video->file_path; }
359

Callers

nothing calls this directly

Calls 1

popAudioMethod · 0.80

Tested by

no test coverage detected