Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Crossfade broken?
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Crossfade broken?  (Read 4965 times)

Offline jhMikeS

  • Developer
  • Member
  • *
  • Posts: 242
Re: Crossfade broken?
« Reply #15 on: December 27, 2016, 08:27:24 PM »
I know exactly what's happening now. Yes, it's due to short tracks not being handled gracefully. PCMBUF sees an auto skip (end of playlist is always auto skip), and the file is short enough that the crossfade is still active at the time, so it bails out (apps/pcmbuf.c line 703). It's not specifically end-of-playlist; having three files in the directory after the two provided will cause a bail on the second and transition to the third.

So, I got this one and have a couple more bugs in the heap that need to be handled. I've been derelict lately.
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Crossfade broken?
« Reply #16 on: December 28, 2016, 07:33:41 PM »
Quote from: jhMikeS on December 27, 2016, 08:27:24 PM
Yes, it's due to short tracks not being handled gracefully ... the file is short enough that the crossfade is still active at the time

Note that the fail occurs even when the 8s crossfade is (or should not be) still active at the time of the end of the 10s file, e.g. https://www.dropbox.com/s/ror2v8gwxbeqjwi/RB%20Crossfade%20fail%20on%20immediate%20skip.mpg?dl=0 .

But yes I do see the fail does not occur with 20s files: https://www.dropbox.com/s/hbwwuizqrqg28ym/RM%20Crossfade%20fail%20absent%20on%2020s%20files.mpg?dl=0

BTW, here's another case for verifying the fix. Instead of a Next, Files Select: https://www.dropbox.com/s/q1vxhibvb3b4f7w/RB%20Crossfade%20fail%20on%20Files%20Select%20second%20track.mpg?dl=0

Logged

Offline jhMikeS

  • Developer
  • Member
  • *
  • Posts: 242
Re: Crossfade broken?
« Reply #17 on: December 29, 2016, 04:08:26 PM »
Let's just say I know for a fact it's running that line in pcmbuf.c which will discard any PCM on the buffer. Selecting from the file browser is just a manual skip to playback.
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Crossfade broken?
« Reply #18 on: January 05, 2017, 10:53:48 AM »
Fix seen here https://git.rockbox.org/?p=rockbox.git;a=commitdiff;h=6c837394ca6d7a988bfbdc9e97630e69f0bc2025 .

Thanks. Looking forward to trying it!
Logged

Offline jhMikeS

  • Developer
  • Member
  • *
  • Posts: 242
Re: Crossfade broken?
« Reply #19 on: January 05, 2017, 04:05:42 PM »
NP. I was going to put something here about it but the forums weren't responding so I figured I'd try again later.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Crossfade broken?
« Reply #20 on: January 05, 2017, 04:10:16 PM »
By the way, do you know why people have reported slower database building on hard disk players since the file system rework? As I recall the new system was faster in most tests, so it's surprising that the database did not benefit.
Logged

Offline jhMikeS

  • Developer
  • Member
  • *
  • Posts: 242
Re: Crossfade broken?
« Reply #21 on: January 05, 2017, 04:35:28 PM »
Which players? I do have hard disk players and didn't see anything horrible in the times. Perhaps the TC ramcache stuff is behind it since it got disabled for the moment (it would have just made the changes even more massive and was no longer compatible with the revised version). I got sidetracked by events and didn't finish what I intended to.
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Crossfade broken?
« Reply #22 on: January 05, 2017, 05:00:01 PM »
Quote from: saratoga on January 05, 2017, 04:10:16 PM
By the way, do you know why people have reported slower database building on hard disk players since the file system rework? As I recall the new system was faster in most tests, so it's surprising that the database did not benefit.

I don't know the RB db code but my experience of other audio metadata DB builders tells me there's opening of many large files and reading of relatively few bytes from each - a usage pattern unique to DB building that could be slowed from an update that would accelerate performance overall, and not be covered by tests that covered other filing system usages.
Logged

Offline chrisjj

  • Member
  • *
  • Posts: 273
Re: Crossfade broken?
« Reply #23 on: January 16, 2017, 07:21:43 PM »
Quote from: chrisjj on January 05, 2017, 10:53:48 AM
Fix seen here https://git.rockbox.org/?p=rockbox.git;a=commitdiff;h=6c837394ca6d7a988bfbdc9e97630e69f0bc2025 .

Thanks. Looking forward to trying it!

The track loss fix is verified here. Thanks!

But crossfade shape is bust. Fade-out delay missing and duration diminished:



Again that's a 10s track.

On a 20s track with skip near start, the shape is correct:



But near end, exhibits the same fail:



This fail strikes every track I've tried regardless on length, when the fade is e.g. 8s from the end.

FWIW, Auto Track Change (on both lengths) is correct .
« Last Edit: January 17, 2017, 08:24:57 PM by chrisjj »
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Crossfade broken?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.232 seconds with 15 queries.