Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Foobar unable to output multi-channel audio stream with a stereo source. (Read 4743 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Foobar unable to output multi-channel audio stream with a stereo source.

Hi!

I've been trying get Foobar to output multi-channel audio, so Windows Sonic would activate. But it just won't work.

I set the  "upmix to 7.1" DSP, but there's no change. I change from primary sound driver to speakers (high definition audio). And I get "Unrecoverable playback error: Unsupported stream format: 44100 Hz / 24-bit / 8 channels (0x63F)". Same thing with WASAPI speakers options.
I guess I got behind times, so I'm on 1.6.12. So I quickly installed a portable 2.0 version. It's much the same, but there are no WASAPI options, and "speakers" here doesn't throw the error, instead it just fails at multi-channel just like primary sound driver.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #1
So basically I want to know how to set foobar to be in 7.1 or 5.1 output mode.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #2
Sounds like you were trying to use WASAPI exclusive mode output when you were playing multichannel audio. It will error out if your hardware doesn't support the audio stream format. With shared mode wasapi the signal is automatically downmixed and resampled to supported format so things won't error out.

The virtual surround stuff handled by Sonic requires a custom Spatial Sound output: https://learn.microsoft.com/en-us/windows/win32/coreaudio/spatial-sound.
In my opinion it makes little sense outside movies or games.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #3
Sounds like you were trying to use WASAPI exclusive mode output when you were playing multichannel audio. It will error out if your hardware doesn't support the audio stream format. With shared mode wasapi the signal is automatically downmixed and resampled to supported format so things won't error out.
I don't think so. It doesn't seem like I even have exclusive options for WASAPI. I tried WASAPI event and push outputs as well as "default", whatever that means.




The virtual surround stuff handled by Sonic requires a custom Spatial Sound output: https://learn.microsoft.com/en-us/windows/win32/coreaudio/spatial-sound.
In my opinion it makes little sense outside movies or games.
It doesn't require it based on evidence, experience. It also works as a speaker virtualization when it's fed multi channel output, without doing anything special.
Just try it with any multi channel content.
Or stereo content with players that can be forcibly set to multi channel (not Foobar) output like Potplayer. Maybe the extra channels are silent but the spatial processing works.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #4
I don't think so. It doesn't seem like I even have exclusive options for WASAPI. I tried WASAPI event and push outputs as well as "default", whatever that means.
You have old foo_out_wasapi installed. All its outputs use exclusive mode, those are the ones listed as "WASAPI (event)" and "WASAPI (push)". And the new default has exclusive outputs marked with "[exclusive]" at the end of the name. So the majority of the output options listed in your screenshot are in fact exclusive mode outputs.

It doesn't require it based on evidence, experience. It also works as a speaker virtualization when it's fed multi channel output, without doing anything special.
Just try it with any multi channel content.
Or stereo content with players that can be forcibly set to multi channel (not Foobar) output like Potplayer. Maybe the extra channels are silent but the spatial processing works.
I hear no change in audio in MPC-HC or VLC. And I just installed Potplayer and I must fail at seeing the option you talk about. I tried actual video with spatial Dolby Atmos audio and no audio setting I tried caused a change in sound between having Dolby Headphones enabled or disabled.
The Windows 11's built-in Media Player however seems to work with Dolby Headphones. But I prefer the sound with the effect off.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #5
First, as mentioned, on the latest foobar versions, wasapi is the default option, there is no more need to add wasapi as some component.


I tried to replicate this(Foobar V2.0 64x).

When I activate the upmix to 7.1(same with 5.1), my EQ VST placed below the upmix dsp "sees" the number of channels changing accordingly(no signal to the LFE/woofer, but the channel exists). So, the upmixing is happening. And in exclusive mode with a multichannel capable device, I do get standard 7.1 detected/played.
With a stereo DAC I get an error about the device already being in use???

In non exclusive mode, I get stereo with both devices no matter what, Sonic or not. And beside horrible artifacts every 3 or 4seconds when using Potplayer and a multichannel video, I really can't tell if Sonic is ever engaged. I must do something wrong, or that thing sucks ballzz.

Sorry I couldn't help more, maybe it's my cardboard ears, maybe it's my overly tweaked computer and apps, maybe gremlins did it? I get out of that experiment convicted to never try Sonic ever again, and that upmix in foobar works fine.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #6
First, as mentioned, on the latest foobar versions, wasapi is the default option, there is no more need to add wasapi as some component.


I tried to replicate this(Foobar V2.0 64x).

When I activate the upmix to 7.1(same with 5.1), my EQ VST placed below the upmix dsp "sees" the number of channels changing accordingly(no signal to the LFE/woofer, but the channel exists). So, the upmixing is happening. And in exclusive mode with a multichannel capable device, I do get standard 7.1 detected/played.
With a stereo DAC I get an error about the device already being in use???

In non exclusive mode, I get stereo with both devices no matter what, Sonic or not. And beside horrible artifacts every 3 or 4seconds when using Potplayer and a multichannel video, I really can't tell if Sonic is ever engaged. I must do something wrong, or that thing sucks ballzz.

Sorry I couldn't help more, maybe it's my cardboard ears, maybe it's my overly tweaked computer and apps, maybe gremlins did it? I get out of that experiment convicted to never try Sonic ever again, and that upmix in foobar works fine.

Actually you don't need to use Potplayer. Every media player that uses LAV should work. I enabled mixing in the LAV Audio Decoder settings and set output speaker configuration to 7.1 and it works with MPC-HC now for example.

One quirk of Sonic though: the output has to be 7.1 when the playback starts, if you switch on the fly it won't activate. You may as well end up with butchered audio, that is at abnormally low volume.


Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #7
Oh well, I guess I have to keep looking for a solution or try Dolby Access or something. I guess there are no FOSS options for good multi-channel virtualization.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #8
Oh well, I guess I have to keep looking for a solution or try Dolby Access or something. I guess there are no FOSS options for good multi-channel virtualization.
Look up HeSuVi. I use it and it works great for games and foobar. Just keep in mind that you can't use it with exclusive mode.
Think millionaire, but with cannons.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #9
Oh well, I guess I have to keep looking for a solution or try Dolby Access or something. I guess there are no FOSS options for good multi-channel virtualization.
Look up HeSuVi. I use it and it works great for games and foobar. Just keep in mind that you can't use it with exclusive mode.
Thanks for the tip.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #10
It seemed like Virtual Audio Cable should work to fake 7.1 output, but it doesn't. Foobar still remains unprocessed.
This disability of foobar is rather annoying.

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #11
I don't think so. It doesn't seem like I even have exclusive options for WASAPI. I tried WASAPI event and push outputs as well as "default", whatever that means.
You have old foo_out_wasapi installed. All its outputs use exclusive mode, those are the ones listed as "WASAPI (event)" and "WASAPI (push)". And the new default has exclusive outputs marked with "[exclusive]" at the end of the name. So the majority of the output options listed in your screenshot are in fact exclusive mode outputs.

It doesn't require it based on evidence, experience. It also works as a speaker virtualization when it's fed multi channel output, without doing anything special.
Just try it with any multi channel content.
Or stereo content with players that can be forcibly set to multi channel (not Foobar) output like Potplayer. Maybe the extra channels are silent but the spatial processing works.
I hear no change in audio in MPC-HC or VLC. And I just installed Potplayer and I must fail at seeing the option you talk about. I tried actual video with spatial Dolby Atmos audio and no audio setting I tried caused a change in sound between having Dolby Headphones enabled or disabled.
The Windows 11's built-in Media Player however seems to work with Dolby Headphones. But I prefer the sound with the effect off.

Darn. It looks like I missed this comment. To hear it in directshow players in general you should set and use LAV:

X

Without that, in Potplayer it's context menu > audio > output speakers, then choose 7.1.
Or: Preferences (F5) > Audio:

X

Not sure where dolby headphone comes from. What needs to be enabled is windows sonic:

X

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #12
You have old foo_out_wasapi installed. All its outputs use exclusive mode, those are the ones listed as "WASAPI (event)" and "WASAPI (push)". And the new default has exclusive outputs marked with "[exclusive]" at the end of the name. So the majority of the output options listed in your screenshot are in fact exclusive mode outputs.
I see. It had to have been there for several years now I guess. So the new outputs that are there use WASAPI anyway? Does directsound not exist anymore in Win10+?

Sounds like you were trying to use WASAPI exclusive mode output when you were playing multichannel audio. It will error out if your hardware doesn't support the audio stream format. With shared mode wasapi the signal is automatically downmixed and resampled to supported format so things won't error out.
So I guess that's the issue. It downmixes automatically even though it's not required. And in exclusive it throws a bogus error I guess? Not sure why multi channel wouldn't be supported. Other apps output it fine.
Or should I try some other api, if such component exists nowadays?

Re: Foobar unable to output multi-channel audio stream with a stereo source.

Reply #13
First, as mentioned, on the latest foobar versions, wasapi is the default option, there is no more need to add wasapi as some component.


I tried to replicate this(Foobar V2.0 64x).

When I activate the upmix to 7.1(same with 5.1), my EQ VST placed below the upmix dsp "sees" the number of channels changing accordingly(no signal to the LFE/woofer, but the channel exists). So, the upmixing is happening. And in exclusive mode with a multichannel capable device, I do get standard 7.1 detected/played.
With a stereo DAC I get an error about the device already being in use???

In non exclusive mode, I get stereo with both devices no matter what, Sonic or not. And beside horrible artifacts every 3 or 4seconds when using Potplayer and a multichannel video, I really can't tell if Sonic is ever engaged. I must do something wrong, or that thing sucks ballzz.

Sorry I couldn't help more, maybe it's my cardboard ears, maybe it's my overly tweaked computer and apps, maybe gremlins did it? I get out of that experiment convicted to never try Sonic ever again, and that upmix in foobar works fine.

Hi!
See above how to enable 7.1 in Potplayer, and sonic in windows, that's the simplest.
You can set it in LAV if you use it in other media players.