Old 11th October 2005, 02:10   #1
ceevee
Junior Member
 
Join Date: Oct 2005
Posts: 2
SPDIF Passthrough

Please include an option in the Directsound output plug-in or a whole new output plugin allowing SPDIF passthrough for the best sound quality for Winamp users with audio receivers and a nice speaker setup. Thanks!
ceevee is offline   Reply With Quote
Old 11th October 2005, 03:26   #2
peaceofcake
Senior Member
 
Join Date: Sep 2003
Posts: 333
Doesn't that automatically take place? I've understood that winamp passes a stream of digital audio to windows which will push it right out the spdif port? I could be wrong of course.
peaceofcake is offline   Reply With Quote
Old 11th March 2010, 23:07   #3
murasaki
Junior Member
 
Join Date: Mar 2010
Posts: 1
Send a message via AIM to murasaki
I think he's right.

I think he's right, winamp is doing something with the audio data that's preventing SPDIF pass through.

I'm trying to use ffdshow to encode SPDIF audio. I use the Direct show in plugin to pass the audio to ffdshow. Everything works, but when I enable AC3 encoding, I get nothing but garbled sound. I noticed the AC3 plugin outputs it's audio directly to direct sound by passing winamp. Is there a way at least to get the in_dshow plugin to do the same? Or would it be more sane to recode the Direct Sound output plugin to support SPDIF/AC3 passthrough?

I should also state that ffdshow is working with most other players just fine and encoding AC3 just fine as well. Right now I'm left with playing my audio through media player classic, as I can't get Windows Media Player to let FFDShow touch any MP3 audio data. What I'm saying here is the alternatives for playing mp3's with AC3/SPDIF out are grim, and I'd like to see winamp be the first player to properly support this for those of us with digital speakers.
murasaki is offline   Reply With Quote
Old 12th March 2010, 13:58   #4
kzuse
Senior Member
 
kzuse's Avatar
 
Join Date: Oct 2005
Location: (D)
Posts: 480
Send a message via ICQ to kzuse Send a message via Skype™ to kzuse
Switch off equalizer, switch off replaygain. Disable any DSP plugins. Switch on "allow 24-bit sound" and disable surround sound. Turn Winamp's volume to 100%. Turn balance to the middle.

Doing so should result in the bitstream being passed through untouchedly.

I didn't try it for myself yet, as my PC doesn't have a S/PDIF output. I'd be glad if you could test it and let me know it that works for you!

Best regards,
kzuse
kzuse is offline   Reply With Quote
Old 26th September 2010, 17:13   #5
kzuse
Senior Member
 
kzuse's Avatar
 
Join Date: Oct 2005
Location: (D)
Posts: 480
Send a message via ICQ to kzuse Send a message via Skype™ to kzuse
I found some time now to test that, as I wanted to play some AC3 5.1 sound through my home theater receiver via Winamp.

And unfortunately, it turns out that there is NO WAY to accomplish that. Even when I disable all processing options (EQ, dither, volume control etc.) Winamp seems to touch the S/PDIF data coming from AC3filter before sending it to the DirectSound output.

All I get is fragments, noise, and a flickering "Double D" indicator on my home theater system (indicating that it cannot sync to any valid AC3 stream).

When I play the same file through WMP or other players, it works very well.

AC3Filter is set to passthrough the AC3 to S/PDIF.

But it seems that Winamp doesn't use sound output in in_dshow.dll (by just inserting the audio renderer at the end of in_dshow's Graph).

Instead I think the audio output of in_dshow.dll is taken back into Winamp by winamp.exe as the host application and then sending it to out_ds.dll, which itself has its own graph for the audio and sends the sound to the Audio renderer.

And exactly there is the break. Winamp just doesn't manage leaving the stream UNTOUCHED and intact!

Are my findings correct?

Maybe this could be fixed in one of the next versions? I think out_ds.dll is the module to be looked into... Thanks, developers!!!

Best regards,
kzuse
kzuse is offline   Reply With Quote
Old 6th January 2011, 10:12   #6
kzuse
Senior Member
 
kzuse's Avatar
 
Join Date: Oct 2005
Location: (D)
Posts: 480
Send a message via ICQ to kzuse Send a message via Skype™ to kzuse
Just thinking of it 'cause I'm reading another, related thread right now --- is there anything new on this here?
kzuse is offline   Reply With Quote
Old 13th January 2011, 20:25   #7
Batter Pudding
Major Dude
 
Batter Pudding's Avatar
 
Join Date: Jun 2008
Posts: 1,665
I know I helped someone get this working the other day with a specifically coded DTS file. Can't remember what I did, but I'll locate the thread and post back in a minute...

Edit: Here it is. A little different to what you are asking, but may well give you a result.

http://forums.winamp.com/showthread.php?t=322092

My Onkyo is connected to the Creative X-Fi using SPDIF on XP and all works fine for me to play my FLAC\MP3s\etc.

And when I fiddled as per that thread, I got DTS 5.1 surround movies coming out in full.
Batter Pudding is offline   Reply With Quote
Old 3rd August 2011, 00:37   #8
HikariWS
Junior Member
 
Join Date: Aug 2011
Posts: 4
As I understand, Winamp wasn't designed to pass untouched audio.

It has plugin system with an SDK that allows us to develop input plugins to early process the reading stream, pass its result to Winamp process the wave audio, and then sends it to the output plugin to send the resulting wave audio somewhere. In the middle of it, Winamp does stuff with that audio, like equalizer, volume, etc.

It totally breaks Winamp design if an input plugin gets the audio and sends it elsewhere, as if it was an output plugin. Therefore, passthrough with Winamp can't work.

Of course, I understand some ppl might wanna use Winamp's UI to make a playlist and show tag info, but doesn't want Winamp effectivelly touching the audio, but that's not what Winamp's devs wanted.

Otherwise, if you wanna use passthrough, you might wanna use some simpler player, like a DirectShow (Media Player Classic suggested) and use AC3Filter, that does it nicely.

Just remember that musics are 2.0, so SPDIF can send it as PCM, no need to encode it to AC3 and lose quality. Realtek driver for exemple supports sending PCM 24bit 192KHz over SPDIF, as long as it's 2.0.

Also, using DirectShow provides us a great advantage: it muxes multiple audio sources into the same stream. If we use passthrough, only 1 app can use a sound device and all otehrs get muted.
HikariWS is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Wishlist

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off

Forum Jump