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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Minor Improvement -- Auto Selection of Sampling Frequency Per Track
« previous next »
  • Print
Pages: [1]

Author Topic: Minor Improvement -- Auto Selection of Sampling Frequency Per Track  (Read 2624 times)

Offline musicfs

  • Member
  • *
  • Posts: 2
Minor Improvement -- Auto Selection of Sampling Frequency Per Track
« on: April 18, 2016, 11:41:42 PM »
Hi All,

Very few players like rockbox offers the options to select between 44kHz and 48kHz to avoid SRC. Is it possible to make the current manual operation automatic based on the sampling frequency tag in track information?

Best,
Musicfs
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Minor Improvement -- Auto Selection of Sampling Frequency Per Track
« Reply #1 on: April 19, 2016, 12:10:07 AM »
Changing the sampling rate requires stopping playback and then reclocking the DAC.  Can be done quickly on most devices, but it won't be gapless obviously. 

We discussed it a few years ago, but people weren't convinced it was a good idea because of the complexity and because of how efficient resampling is:

http://www.rockbox.org/irc/log-20130706
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Minor Improvement -- Auto Selection of Sampling Frequency Per Track
« Reply #2 on: April 19, 2016, 03:53:16 AM »
I read discussion and I think most simple and bug (side effect) free solution will be stop playback if next file have different frequency. Than change frequency and start playback from next file.
Also we should disable crossfade before stop and reenable it after start.

In this case we don't lost sound quality and battery life as it will be with resampling.
Logged

Offline musicfs

  • Member
  • *
  • Posts: 2
Re: Minor Improvement -- Auto Selection of Sampling Frequency Per Track
« Reply #3 on: April 19, 2016, 12:07:31 PM »
Quote from: saratoga on April 19, 2016, 12:10:07 AM
Changing the sampling rate requires stopping playback and then reclocking the DAC.  Can be done quickly on most devices, but it won't be gapless obviously. 

We discussed it a few years ago, but people weren't convinced it was a good idea because of the complexity and because of how efficient resampling is:

http://www.rockbox.org/irc/log-20130706
The sampling rate doesn't change often between tracks in a playlist or an album, so we won't hurt gapless too often as well.
Logged

Offline 0rpheu

  • Member
  • *
  • Posts: 1
Re: Minor Improvement -- Auto Selection of Sampling Frequency Per Track
« Reply #4 on: June 05, 2016, 06:48:01 AM »
Quote from: Mihail Zenkov on April 19, 2016, 03:53:16 AM
I read discussion and I think most simple and bug (side effect) free solution will be stop playback if next file have different frequency. Than change frequency and start playback from next file.
Also we should disable crossfade before stop and reenable it after start.

In this case we don't lost sound quality and battery life as it will be with resampling.

Woudnt  it be easier to verify if the rockbox Sampling freq is the  same as the track each time a new track is played? and if not then ajust it.
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Minor Improvement -- Auto Selection of Sampling Frequency Per Track
« Reply #5 on: June 05, 2016, 08:17:02 AM »
Quote from: 0rpheu on June 05, 2016, 06:48:01 AM
Woudnt  it be easier to verify if the rockbox Sampling freq is the  same as the track each time a new track is played? and if not then ajust it.
Yes, but AFAIK to do this correct we should restart (stop, change freq, play next) audio part, as we should flush buffer and recalculate filters (DSP).
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Minor Improvement -- Auto Selection of Sampling Frequency Per Track
 

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

Page created in 0.082 seconds with 15 queries.