55 lines
1.0 KiB
Java
55 lines
1.0 KiB
Java
package c.i.a.c.i2;
|
|
|
|
import c.i.a.c.d1;
|
|
import c.i.a.c.h0;
|
|
/* compiled from: StandaloneMediaClock */
|
|
public final class a0 implements r {
|
|
public final g i;
|
|
public boolean j;
|
|
public long k;
|
|
public long l;
|
|
public d1 m = d1.a;
|
|
|
|
public a0(g gVar) {
|
|
this.i = gVar;
|
|
}
|
|
|
|
public void a(long j) {
|
|
this.k = j;
|
|
if (this.j) {
|
|
this.l = this.i.c();
|
|
}
|
|
}
|
|
|
|
public void b() {
|
|
if (!this.j) {
|
|
this.l = this.i.c();
|
|
this.j = true;
|
|
}
|
|
}
|
|
|
|
@Override // c.i.a.c.i2.r
|
|
public d1 c() {
|
|
return this.m;
|
|
}
|
|
|
|
@Override // c.i.a.c.i2.r
|
|
public void e(d1 d1Var) {
|
|
if (this.j) {
|
|
a(m());
|
|
}
|
|
this.m = d1Var;
|
|
}
|
|
|
|
@Override // c.i.a.c.i2.r
|
|
public long m() {
|
|
long j = this.k;
|
|
if (!this.j) {
|
|
return j;
|
|
}
|
|
long c2 = this.i.c() - this.l;
|
|
d1 d1Var = this.m;
|
|
return d1Var.b == 1.0f ? j + h0.a(c2) : j + (c2 * ((long) d1Var.d));
|
|
}
|
|
}
|