22class ForwardingPlaybackController final :
public Animator {
28 : fTrack(
std::move(track))
30 , fOutPoint(out_point)
34 StateChanged onSeek(
float t)
override {
36 if (t < fInPoint || t > fOutPoint) {
39 t = (t - fInPoint) / fFps;
57 LayerInfo* layer_info)
const {
58 const ScopedAssetRef audio_asset(
this, jlayer);
61 const auto& jaudio = *audio_asset;
67 auto track = fResourceProvider->loadAudioAsset(
path->begin(),
71 fCurrentAnimatorScope->push_back(
72 sk_make_sp<ForwardingPlaybackController>(std::move(track),
74 layer_info->fOutPoint,
78 "Could not load audio asset '%s'.", name->
begin());
const char * begin() const
void log(Logger::Level, const skjson::Value *, const char fmt[],...) const SK_PRINTF_LIKE(4
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
DEF_SWITCHES_START aot vmservice shared library name