hellcat707hp / GTRadio

An open-source, custom radio player for Android designed to produce similar functional results to the radios found in the Grand Theft Auto series of games.
GNU General Public License v3.0
9 stars 0 forks source link

fix(playback): play-pause-play for Gen2 and Gen3 stations results in tracks getting skipped #20

Open hellcat707hp opened 2 weeks ago

hellcat707hp commented 2 weeks ago

Describe the bug When listening to a Gen2 or Gen3 station, the user can hit pause then play and the current track will skip to the next one despite the time difference not exceeding the track length.

To Reproduce Steps to reproduce the behavior:

  1. Go to any Gen2 or Gen3 station.
  2. Start playing the station
  3. Pause the station and then immediately play it again
  4. Notice it skipped forward a track instead of resuming based on time difference

Expected behavior Ideally this would behave the same as Gen1 stations that can calculate the time difference and just start the same track again as if you were tuning back into a live radio station.

Screenshots Not applicable.

Smartphone (please complete the following information):

Additional context From the tech side, this could be difficult when we use those compound tracks for songs where we combine the intro-song-outro. I struggled to get this working reliably in the past so not sure how hard this will be.