Rockbox Development > Starting Development and Compiling

Adding time delay to left channel on sound output

(1/4) > >>

s3t:
Hi all,

Could you please suggest me where do i put a piece of code to add a delay to left channel?
It should be just a few ms delay - i need it in car audio installation where i use iRiver ihp-120 as main audio source.
The delay is needed to time align left and right channels in car environment.
The distance to left and right speakers in car is not symmetrical, therefore the sound produced by speakers comes with different delay to the listener, so the delays has to be "aligned" to make listener (me :) ) happy.

The way i think it should be implemented is using a FIFO buffer (array) with pointers (indexes) for reading and writing, which will store the audio data.

Another option is to mess with existing audio buffer, and adjusting it's reading addresses for different channels:
Say we are at #900 position of buffer, then the right channel reads #900, and the left -  #800 (#900-100) (100 samples difference).


I'm unfamiliar with the internals of RockBox firmware, so i ask Your advice which is the easiest way to do this?

Thank you for the best firmware ever for the mp3! It really makes the mp3 players shine! :) I love it so much i decided to put it in car instead of head unit :)

Recording Guy:
I would have thought a Digital Delay Pedal might be the best way to go about your task,
you could split the lead and run the left channel through the delay, then you could "fine tune"
the ms delay that you are after.

Something like this maybe :

http://www.gear4music.com/Guitar-and-Bass/Behringer-DD400-Digital-Delay-Pedal/4I1

Have you tried panning your amp to get a stronger left signal towards the drivers side?

Just a couple of thoughts to an unusual conundrum  ;)

perfectdrug:
I thought that is what Balance is for.

saratoga:
I think balance only adjusts volume, not phase delay.

s3t:
The pedal is nice as long as it stays in digital domain of signal path which is not the case here... Yet it's nice to know such product exists.

I choose the old iriver player for it's ability to give spdif/toslink output, which i use to feed some diy DAC.

I want to keep away from unnecessary analog-digital-analog conversions, which, probably, will kill the quality of sound.

I'm trying to mimic the sophisticated head units which do "time alignment" feature...

Navigation

[0] Message Index

[#] Next page

Go to full version