Go Back   DriverHeaven.net > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > General Discussion

Notices

Reply
 
LinkBack Thread Tools Display Modes
Old Jun 18, 2006, 07:37 PM   #1 (permalink)
Tril
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,405
Tril is on a distinguished road
System Specs

The rear output is delayed by about 8 samples at 48kHz on my SBLive! CT4832

I use an headphone amp I built that is called "Dynamid" on Head-Fi. It has balanced inputs and ouputs. What that means is that it needs four inputs. I use the kX drivers for this. It also has four outputs, two for each earpiece.

The DSP is used to produce the balanced signal by using the Phase plugin.

In the DSP :
  • I connect the left and the inverted left to the analog front left and analog front right.
  • I also connect the right and the inverted right to the analog rear left and analog rear right.
It always sounded as if the sound was not centered. I thought it was because of a volume imbalance between left and right so I was using a Vol plugin. It never sounded totally centered.

I was beginning to think that my headphones were broken.

Today, I connected a TheSmallDelay plugin to the analog front outputs and I played with it. I found out that I need to delay the front output by about 8 samples to get the sound in sync with the rear ouput of the card.

What that means is that, on my soundcard, the rear output is delayed by about 8 samples (0.167 ms) compared to the front output. I need to delay the front output by the same amount to get the front and the rear in sync in my headphones.

I have no idea if it's like that with other soundcards using the emu10kX chip. If it's like that, it means that TimeBalanceV2, the plugin I wrote to delay the channels to get the sound from all the speakers to you at the same time, makes slightly incorrect calculations for the affected cards.
Tril is offline   Reply With Quote
Old Jun 18, 2006, 08:10 PM   #2 (permalink)
dj_stick
DH's Latest Mac Convert
 
dj_stick's Avatar
 
Join Date: Jun 2003
Location: Basement of the first floor
Posts: 15,539
dj_stick is a name known to alldj_stick is a name known to alldj_stick is a name known to alldj_stick is a name known to alldj_stick is a name known to alldj_stick is a name known to all
System Specs

this could be due to the different DACs used for the front and rear outputs - the phase variation would cause 4.1 speakers to lose a lot of the low end…
__________________
Chris - The Aussie Super Mod
Driverheaven Rules - Sig Request Thread
kX Website - kX Knowledgebase - kX Getting Started Guide

How you can help DriverHeaven by using Digg!

Driverheaven Super-Moderator - kX Knowledgebase Co-ordinator
dj_stick is offline   Reply With Quote
Old Jun 21, 2006, 06:23 PM   #3 (permalink)
Tril
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,405
Tril is on a distinguished road
System Specs

I reinitialized my DSP and rebuilt it almost the same as before and it's now the back analog output that needs to be delayed to be in sync with the front. It's still the same delay.
Tril is offline   Reply With Quote
Old Jun 21, 2006, 07:51 PM   #4 (permalink)
Lex Nahumury
DriverHeaven Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,756
Lex Nahumury is on a distinguished road

>>The rear output is delayed by about 8 samples at 48kHz on my SBLive! CT4832
That doesn't really surprise me.
Front uses AC97 codec through AC-Link protocol,
while Rear uses different codec through I2S protocol.

Even if you would apply exact same signal in DSP straight to those bare I/O port registers,
the resulting audio signals will most likely have phase delays.

/Lex.
[edit]
On second thought, I think the protocols AC-Link/I2S are the same.
See docs for details.

Last edited by Lex Nahumury; Jun 21, 2006 at 08:13 PM.
Lex Nahumury is offline   Reply With Quote
Old Jun 21, 2006, 11:07 PM   #5 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,060
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Another thing to consider is the plugin ordering. From your description it sounds like your setup is something like the following:

Surrounder(fL/fR) -> epilog(fL/sR)
Surrounder(fL/fR) -> Phase -> epilog(fR/sL)

Under that scenario, if Surrounder was ordered before epilog, but Phase was ordered after epilog, then you would have a delay of 1 sample between the inverted/non-inverted signal which might cause some problems.

It might be better to make a 2 input / 4 output plugin, instead of using the Phase plugin, to make sure the path is equal to epilog for all 4 signals (and then the plugin ordering should not make a difference).

i.e.
Code:
input in_left, in_right;
output out_left+, out_left-;
output out_right+, out_right-;

macs 	 out_left+,  in_left,  0x0, 0x0;
macs 	 out_left-,  0x0,  out_left+,  0x80000000;
macs 	 out_right+,  in_right,  0x0, 0x0;
macs 	 out_right-,  0x0,  out_right+,  0x80000000;
It is probably not the cause here (and maybe you allready considered it), but it could be a contributing factor. Just something to think about...

BTW: I know you can make your own plugin, I just figured I would post example code for others, etc.

Last edited by Russ; Jun 22, 2006 at 11:59 AM.
Russ is offline   Reply With Quote
Old Jun 22, 2006, 06:55 AM   #6 (permalink)
Lex Nahumury
DriverHeaven Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,756
Lex Nahumury is on a distinguished road

That's why I said;
"..Even if you would apply exact same signal in DSP straight to those bare I/O port registers..."
hence, ruling out any possible DSP induced delays.

I remember I did such tests and IIRC there will always be phase diff/delays because of diff. codecs used.
Lex Nahumury is offline   Reply With Quote
Old Jun 22, 2006, 11:51 AM   #7 (permalink)
Russ
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,060
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Quote:
Originally Posted by Lex Nahumury
That's why I said;
"..Even if you would apply exact same signal in DSP straight to those bare I/O port registers..."
hence, ruling out any possible DSP induced delays.

I remember I did such tests and IIRC there will always be phase diff/delays because of diff. codecs used.
Sorry Lex, I did not realize that is what you meant with that statement.
Russ is offline   Reply With Quote
Old Jul 8, 2006, 08:41 AM   #8 (permalink)
Chester01
DriverHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 433
Chester01 is on a distinguished road

is this an issue on other cards? Such as the SB0350? I have no idea how I would test the delay caused by the DACs without more testing equipment...
__________________
COMP: Dual Intel PIII 733 Mhz; GeForce 4 Ti 4600; 1.128 Gb RAM; SB0350 (Audigy 2 ZS Platnium)
STEREO(I UPGRADED):Crown Audio K1 and K2 amplifiers (4000 watts at .1% THD ), JL 13w7 Subwoofer (6.5 CF) (2) 18" PR's, Klipsch SB-1's, some cement blocks for speaker stands...
Chester01 is offline   Reply With Quote
Old Jul 8, 2006, 04:22 PM   #9 (permalink)
Tril
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,405
Tril is on a distinguished road
System Specs

Don't worry too much about it. If you take into account the speed of sound in the air, 8 samples at 48 kHz is equal to a distance of about 6 cm.

Place your rear speakers 6 cm closer or farther than their current position and you get a delay of 8 samples.

I only noticed it because I'm using headphones. I listen with one ear from the front output jack and the other ear from the rear output jack.
Tril is offline   Reply With Quote
Old Jul 8, 2006, 06:08 PM   #10 (permalink)
Chester01
DriverHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 433
Chester01 is on a distinguished road

I am currently using the front and rear channels to deliver balanced audio into a DBX Driverack PA... Therefore I MAY be delaying one channel (left or right) by 8 samples... This is why I was slightly concerned... I used TheSmallDelay plugin to delay the cold and then the hot outputs by 8 msec and swapped the physical outputs into the amp (so I would use the rear cold with the front hot...) I have found that there are phasing issues when attempting to delay to compensate for the possible 8 msec delay caused by the output. Therefore it is not an issue with the SB0350
__________________
COMP: Dual Intel PIII 733 Mhz; GeForce 4 Ti 4600; 1.128 Gb RAM; SB0350 (Audigy 2 ZS Platnium)
STEREO(I UPGRADED):Crown Audio K1 and K2 amplifiers (4000 watts at .1% THD ), JL 13w7 Subwoofer (6.5 CF) (2) 18" PR's, Klipsch SB-1's, some cement blocks for speaker stands...
Chester01 is offline   Reply With Quote
Old Jul 9, 2006, 01:43 AM   #11 (permalink)
Tril
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,405
Tril is on a distinguished road
System Specs

I am talking of a delay of 8 samples, not 8 ms.
8 samples = 0.167 ms
Tril is offline   Reply With Quote
Old Jul 9, 2006, 06:29 AM   #12 (permalink)
Chester01
DriverHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 433
Chester01 is on a distinguished road

Sorry, that is my error in the post, I actually did use 8 samples (or 0.1666666667 milliseconds) TheSmallDelay is a 2-2400 sample delay. Sorry
__________________
COMP: Dual Intel PIII 733 Mhz; GeForce 4 Ti 4600; 1.128 Gb RAM; SB0350 (Audigy 2 ZS Platnium)
STEREO(I UPGRADED):Crown Audio K1 and K2 amplifiers (4000 watts at .1% THD ), JL 13w7 Subwoofer (6.5 CF) (2) 18" PR's, Klipsch SB-1's, some cement blocks for speaker stands...
Chester01 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump




 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 09:42 AM. Copyright ©2008 DriverHeaven.net