HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

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


Reply
 
Thread Tools
Old Jun 19, 2006, 01:37 AM   #1
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,676
Rep Power: 64
Tril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud of
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 19, 2006, 02:10 AM   #2
Apple Fanboy?
 
dj_stick's Avatar
 
Join Date: Jun 2003
Location: Basement of the first floor
Posts: 17,485
Rep Power: 190
dj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his statusdj_stick is godlike in his status
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
Hardwareheaven Rules - Sig Request Thread

How you can help HardwareHeaven by using Digg!

Hardwareheaven Super-Moderator

Quote:
Originally Posted by OmegaRED View Post
You know, there's "off topic" and then there's so freakin' off topic it you gotta wear a straitjacket to join the conversation.
dj_stick is offline   Reply With Quote
Old Jun 22, 2006, 12:23 AM Threadstarter Thread Starter   #3
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,676
Rep Power: 64
Tril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud of
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 22, 2006, 01:51 AM   #4
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

>>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 22, 2006 at 02:13 AM.
Lex Nahumury is offline   Reply With Quote
Old Jun 22, 2006, 05:07 AM   #5
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

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 05:59 PM.
Russ is offline   Reply With Quote
Old Jun 22, 2006, 12:55 PM   #6
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,932
Rep Power: 64
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

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, 05:51 PM   #7
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

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, 02:41 PM   #8
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
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, 10:22 PM Threadstarter Thread Starter   #9
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,676
Rep Power: 64
Tril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud of
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 9, 2006, 12:08 AM   #10
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
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, 07:43 AM Threadstarter Thread Starter   #11
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,676
Rep Power: 64
Tril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud ofTril has much to be proud of
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, 12:29 PM   #12
HardwareHeaven Senior Member
 
Join Date: Jan 2004
Location: St. Cloud, MN
Posts: 492
Rep Power: 0
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

Thread Tools