it doesn't work because that is an optical out on your Nf7-s and optical out on your cable box. you had it right with your 1st setup.
cable box to receiver
computer to receiver
bg
cable box to receiver
computer to receiver
bg
I'm trying to decode an AC3 signal from the SPDIF input on my sound card, and I think your plugin (in conjunction with AC3filter) can do this. I've gotten your plugin to play the source, and regular stereo audio plays fine. With an AC3 signal, however, it seems to just send it to DirectSound in the same way and it never gets decoded. Is there a way, with your plugin, to either make WinAmp think that it's playing an AC3 file so it uses the WinAmpAC3 plugin to decode it, or make DirectShow decode the AC3 signal itself? I'm not sure if you'd be likely to know this, since I don't think this was really the intended use of your plugin, but I figured I'd ask. |
You are right that this wasn't the intended! But it's interesting none the less. Tricking Winamp into thinking the linein signal is an AC3 file won't work, as the input plugins are themselves responsible for opening and reading the files (so I can't feed it the signal directly). What you could try to do is store the recorded signal to a file (output to the raw pcm format and give it the right extension) and play that file from within another instance of Winamp. I think this should work in theory, and I could modify my File Writer plugin if that's needed (it might need some changes in the file sharing settings). One way to check whether this would be possible is to first store a (small) stream this way and then try to play it afterwards (while it isn't being written to anymore), if this works it should probably be possible to make this work in realtime. Another option would be to use some kind of DSP plugin to decode the signal (although this is tricky, as the output of the DSP plugin can never be more than two times the size of the input, I could try to lift that restriction a bit in this case though). I don't know what DSP plugin you would need, but I know there should at least be a DSP plugin that can use DirectSound effects, so it may be possible to use that (perhaps the developer would be willing to adapt it to allow for this). Then there is the option of using a different player, Foobar2000 might be capable of what you want to do, but it would probably require some new plugins. Winamp 3 would also be a possible candidate (although you'd have to find someone willing to make plugins for it), and perhaps there are other players out there which would support things like this. Last but not least you could try using Graphedit to construct a filter manually. I haven't used this program often myself, but from what I've seen it's pretty powerful, you can connect arbitrary DirectShow components and as far as I can see it's also possible to input directly from the soundcard with this. If you can't find it, it's at least included in the DirectX SDK (downloadable from microsoft, probably from msdn.microsoft.com). It's not the most user-friendly program, but it can probably do what you want. And if you need the decoded output in Winamp again you could use Virtual Audio Cable, just let Graphedit output to the VAC and use Winamp to input from the VAC again and you're all set. If you don't need to do this in realtime the problem becomes much less complex, but you probably figured that out already (assuming the AC3 stream can be read by a normal AC3 decoder), as you can then simply store the recorded signal to a temporary file and then decode it. |
Originally posted by jakiii ... from my HD cable box (Motorola) and the 5.1 sound gets lost. |