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
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Fade on stop/pause - via Line-out
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Fade on stop/pause - via Line-out  (Read 11399 times)

Offline brenthaag

  • Member
  • *
  • Posts: 1
Re: Fade on stop/pause - via Line-out
« Reply #15 on: October 11, 2008, 02:52:51 PM »
I have the same problem/request.  I would like to point out that when you skip tracks (and the fade-in/fade-out is turned on), it will fade out the playing song and fade in the new song on the line out--at least it seems to on my iPod color.
Logged

Offline karashata

  • Rockbox Expert
  • Member
  • *
  • Posts: 603
  • Just a fluffy dragon with too much time on my paws
    • Alex Vanderpol (karashata) on Twitter
Re: Fade on stop/pause - via Line-out
« Reply #16 on: October 11, 2008, 03:26:51 PM »
Quote from: brenthaag on October 11, 2008, 02:52:51 PM
I would like to point out that when you skip tracks (and the fade-in/fade-out is turned on), it will fade out the playing song and fade in the new song on the line out--at least it seems to on my iPod color.

You may want to check if you have crossfade on (set to either "Track Skip Only" or "Shuffle and Track Skip"), since that's what crossfade is supposed to do...
Logged
Welp, my iriver H10 20GB is out of commission again.

Offline Falco98

  • Member
  • *
  • Posts: 153
Re: Fade on stop/pause - via Line-out
« Reply #17 on: January 01, 2010, 02:50:27 AM »
Quote from: karashata on October 11, 2008, 03:26:51 PM
Quote from: brenthaag on October 11, 2008, 02:52:51 PM
I would like to point out that when you skip tracks (and the fade-in/fade-out is turned on), it will fade out the playing song and fade in the new song on the line out--at least it seems to on my iPod color.

You may want to check if you have crossfade on (set to either "Track Skip Only" or "Shuffle and Track Skip"), since that's what crossfade is supposed to do...

I'm pretty sure that's exactly the point he was making.  In other words, there are no problems with fading the audio out for a crossfade, but it won't fade out when pausing.  Isn't that a rather simple principle?

I agree with this issue - I just got my 5.5g 80gig ipod and noticed this problem pretty much immediately.  Also I was wondering whether the fade-to-pause is really supposed to take what seems like 2 seconds, since on my iRiver 140 it was always nearly instantaneous.  But I digress:  why can't the fade-on-pause be handled in the same way as the fade out for crossfade (which, once again, works)?  I'm not familiar with the terminology, but it seems some others here were calling this "dsp". 

Also, it seems like it would be nice to be able to set the fade length in milliseconds, or something; i want a fade on pause to avoid a harsh cut-off, but I don't need a 2-second fadeout.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Fade on stop/pause - via Line-out
« Reply #18 on: January 12, 2010, 07:54:46 PM »
fade on pause/stop is currently hard coded and implementing using the output volume. crossfade is implemented using the DSP (digital signal proccessing... software which mangles the output).
If someone were to redo fade to use the DSP then it would work on the lineout and be the same as crossfade. noone has stepped up to do that.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Fade on stop/pause - via Line-out
« Reply #19 on: January 12, 2010, 07:56:04 PM »
Using DSP for L/R balance would also be nice so that balance can be adjusted over line out.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Fade on stop/pause - via Line-out
« Reply #20 on: January 12, 2010, 08:03:50 PM »
so someone just needs to come up with a really fast DSP so we can do this stuff at the last possible moment before it goes out to the DAC
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Fade on stop/pause - via Line-out
« Reply #21 on: January 13, 2010, 07:48:23 AM »
Quote from: JdGordon on January 12, 2010, 08:03:50 PM
so someone just needs to come up with a really fast DSP so we can do this stuff at the last possible moment before it goes out to the DAC
I'm assuming that comment is for the fade on pause - L/R balance would be OK using the same mechanism as the other interactive DSP operations - or even the ones that have no special treatment (Replay Gain Pre-Amp for example)

I remember reading some of the code that deals with that and being HUGELY impressed - I've worked on 'professional' projects where the quality of the code was nowhere near as good as Rockbox!
Logged

Offline Blue Dude

  • Member
  • *
  • Posts: 19
Re: Fade on stop/pause - via Line-out
« Reply #22 on: January 13, 2010, 11:58:07 PM »
The problem with moving instantaneous user interface effects such as fade-on-pause, key clicks, volume changes, balance, etc. to the DSP is that the DSP is not at all instantaneous.  Depending on the size and mode of the PCM buffer, it can lag by several seconds.  Even setting low latency means an unacceptable 1/4 second or more delay.

Crossfade sounds smooth because it is uses a less granular fade interval than the volume control, but its fade effect is mixed directly into the output buffer, usually with a several second delay.  Quite a lot of trouble goes into making a fade happen in real time.  It's possible to do a real time pause fade in the same fashion, but it would be destructive, requiring a rebuffer every time it's done (effectively equivalent to stop/resume).  This isn't prohibitive, but it's one reason why it's not a trivial change.  It's just plain easier to step the volume down, pause the DMA in hardware, then step up than it is to operate directly on the output buffer, stop everything, and then resume.

Sounds like an interesting project, though...
Logged

Offline Falco98

  • Member
  • *
  • Posts: 153
Re: Fade on stop/pause - via Line-out
« Reply #23 on: February 14, 2010, 09:55:52 PM »
I have checked the changelog (major changes, anyway) and there is no mention of this, but the issue seems to have been fixed in 3.5 -- i am running a 5.5g 80gb ipod, and now when playing thru its line-out in my girlfriend's car, it does fade out and in on stop and pause / resume.  I wish it were mentioned in a changelog somewhere, I'm curious as to what was done.
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Fade on stop/pause - via Line-out
 

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

Page created in 0.112 seconds with 14 queries.