1. 15 Dec, 2022 4 commits
    • Generate complete silent audio frames · c17c23d1
      `SilentAudioGenerator` could output a fractional audio frame, and this could cause downstream components to throw because of trying to read a complete audio frame but only seeing a partial one.
      
      Calculate the output buffer size based on the frame size (which is a no-op for stereo 16-bit audio) and calculate a total number of frames to output then multiple by the frame size.
      
      PiperOrigin-RevId: 494992941
      andrewlewis committed
    • Reset isLoading when calling SimpleBasePlayer.stop/release · e4f0b73a
      isLoading is not allowed to be true when IDLE, so we have to set to
      false when stopping in case it was set to true before.
      
      PiperOrigin-RevId: 494975405
      tonihei committed
    • Forward seek command details to seekTo method in BasePlayer · 6e0f1f10
      BasePlayer simplifies implementations by handling all the various
      seek methods and forwarding to a single method that can then be
      implemented by subclasses. However, this loses the information about
      the concrete entry point used for seeking, which is relevant when
      the subclass wants to verify or filter by Player.Command. This
      can be improved by adding the command as a new parameter. Since
      we have to change the method anyway, we can also incorporate the
      boolean flag about whether the current item is repeated to avoid
      the separate method.
      
      PiperOrigin-RevId: 494948094
      tonihei committed
    • Add codec names to TransformationResult · 03d6da85
      PiperOrigin-RevId: 494736085
      samrobinson committed
  2. 12 Dec, 2022 36 commits