Wine doesn't support 5.1 and 7.1 sound
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wine |
Fix Released
|
Wishlist
|
|||
wine1.4 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: wine
Wine currently only support stereo sound. It would be great to have more channels and get 4.0, 5.1 or more.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#2 |
Amazingly this bug doesn't seem to have been filed before (support request for multi-channel audio) so correcting the details to make more sense. This isn't likely to be done for a while thought due to a) drivers not being that great, b) EAX missing entirely from drivers and other reasons which I'm sure the devs can give you.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#3 |
It is my understanding that EAX (Environmental Audio Extensions) and surround support for DirectSound are two independent things. EAX is just a bunch of environmental audio presets, and has nothing to do with hearing enemies coming from behind you in 3d games.
I can select 5.1 audio output in Team Fortress 2, but there is no audio from the rear speakers and when I restart the game the sound option is reset to stereo.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#4 |
*** Bug 14927 has been marked as a duplicate of this bug. ***
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#5 |
It would be wonderfull to hear full 5.1 or 7.1 sound in games such as World of
Warcraft, Guild Wars or any other game (3D shooter for example) that allows
multichannel sound output. Difference between how those games sound in Windows
and Wine is MASSIVE.
Cheers!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#6 |
And there is a game that has a problem with sound in wine.
Please get this game from http://
and make it work on newer versions of wine.
The problem consists in that when a ball is moved on a
wider path, the bumps of each jump are not all heard,
and also, when a row of balls dissapears, the boom
sound is heard only about at 50 % chance.
Thanks in advance.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#7 |
(In reply to comment #6)
> And there is a game that has a problem with sound in wine.
> Please get this game from http://
> and make it work on newer versions of wine.
> The problem consists in that when a ball is moved on a
> wider path, the bumps of each jump are not all heard,
> and also, when a row of balls dissapears, the boom
> sound is heard only about at 50 % chance.
> Thanks in advance.
>
How is this related to multi-channel sound not being implemented?
Open a new bug for your problem.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#8 |
(In reply to comment #7)
I filed a new bug considering this. Bug 13852 :
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Id2ndR (id2ndr) wrote : | #9 |
Binary package hint: wine
Wine currently only support stereo sound. It would be great to have more channels and get 4.0, 5.1 or more.
Changed in wine: | |
status: | Unknown → Confirmed |
Changed in wine (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#10 |
Is there any news regarding this.
Is it possible to somehow use 5.1 or any other multi-channel sound by now?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#11 |
Still unimplemented, but with Maarten's recent work with Wine and OpenAL, it's much closer.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#12 |
(In reply to comment #10)
> Still unimplemented, but with Maarten's recent work with Wine and OpenAL, it's
> much closer.
But the sound sources of OpenAL are usually mono.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#13 |
Does this occur in newest WINE?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
rusivi2 (rusivi2-deactivatedaccount) wrote : | #14 |
Thank you for posting this bug.
What version of Ubuntu & WINE were you using?
Does this occur in newest WINE?
Changed in wine (Ubuntu): | |
status: | Triaged → Incomplete |
Changed in wine: | |
importance: | Unknown → Wishlist |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#15 |
I've spent most of today looking into this. All testing was against wine 1.3.10.
My system uses a Gigabyte X58A-UD9 MB with on-board Realtek ALC889 sound connected to a Logitech Z-5500 5.1 system via analogue, and I'm running Ubuntu 10.04.
Under the Sound Preferences Hardware tab, I have selected "Analog Surround 5.1 Output".
When I run the command “speaker-test -c6 -l1 -twav” everything plays exactly as expected. I've also added the following line to my /etc/pulse/
enable-remixing = no
Otherwise it's not always immediately obvious if games are actually supporting multi-channel or not. Additionally, my bare-bones ALSA config file redirects everything to PulseAudio by default.
I've mostly tested games with ALSA selected in winecfg, but tried a couple of games with the WinePulse patches and using PulseAudio directly to see if it made a difference. It didn't.
The results:
In Portal, selecting 5.1 reverts back to stereo after freezing for a few seconds. Selecting a multi-channel sound configuration is not possible (sounds like the Team Fortress 2 report above).
StarCraft 1 certainly didn't output anything to my rear channels, as expected from previous comments here.
StarCraft II, looked promising (I can select 5.1 from the drop-down successfully) but it actually seems to do nothing (no audio was heard from the rear channels). I tested as much as the menus and game cut-scenes.
UT2004 and Killing Floor (a UT2004-based game) also didn't run multi-channel, even after adjusting some of the audio settings in-game.
Aliens Vs Predator was only stereo, and doesn't provide an option to tweak anything useful audio-related in-game.
Despite all these failures, Unreal Tournament 3 multi-channel audio actually worked effortlessly. You can clearly hear menu click sound effects in the rear speakers, and surround sound in-game appears to work perfectly (I played a few matches to test it out – using the patch for bug 6971 of course).
Given that UT3 worked, I tried Stranglehold (UT3-based), but that *didn't* work. There wasn't much in the way of in-game options there. Perhaps if I had more time I could try diff'ing the UT*.ini and Stranglehold ini files... don't know.
I've got plenty of other games I could try, but that's it for now. Very curious to know what's so special about UT3. Either way, it would be awesome to improve multi-channel sound compatibility. I personally don't care about EAX.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#16 |
wine need to implement dsound 's speaker-
This is easy for desktop with 6 audio jacks in rear panel since you don't need to change the switches of your sound card (e.g. "Smart51", "Channel mode" to retask the pink and blue jacks as output
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#17 |
I don't think I've ever used a sound card that required retasking the input jacks as outputs for additional channel outputs, but would assume it would entirely be taken care of in ALSA.
I suspect (as far as Windows software goes) only driver utility software would need this functionality, and WINE in general doesn't deal with drivers. Thus, I figure we only need to work with whatever is already configured in ALSA/Sound Preferences and keep things simple? Hope I understood you correctly.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#18 |
http://
Those are motherboard with only 3 audio jacks at rear panel
Take a look at videos
For example, you can listen to one audio source through the back panel speakers and a second audio source through front panel headphones or speakers.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#19 |
(In reply to comment #13)
> I've got plenty of other games I could try, but that's it for now. Very curious
> to know what's so special about UT3.
Doesn't UT3 use OpenAL?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#20 |
Thanks Raymond.
> Doesn't UT3 use OpenAL?
Just took a look at the OpenAL WikiPedia page, and it does. So does UT2004 though, but that didn't work.
I noticed BioShock was on the list, so I tried a BioShock demo I downloaded ages ago. It had an option for 5.1... looked promising, but again no success. Tried restarting the app, noticed 5.1 was still selected, but still no multi-channel. Must be something else that's special about UT3...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#21 |
according to the pdf , second audio source through front panel headphones can be accessed through dsound
does your snd-hda-intel provide this independent headphone device ?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#22 |
I have no idea. I suppose I would have to load up Windows and hunt around to see if it's possible. I know the Windows configuration software that came with my motherboard doesn't look quite like the one in the picture.
Definitely under PulseAudio I can tell Xine to play to iec958 (eg. Dolby Digital DVD audio via passthrough) simultaneously to, say, having mplayer play a flac file to analogue-out channels... but I assume that's not useful to you - I think you want to know if it's possible exclusively using my front and back analogue jacks. I might get a chance to try it tomorrow night.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#23 |
The "Multistreaming" option of realtek and idt codec is similar to the "Independent Headphone" switch in snd-hda-intel if you are using VIA HDA Codec
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#24 |
Created an attachment (id=32732)
Multistreaming under Windows
Windows 7 multistreaming via Realtek ALC889, as found on a Gigabyte X58A-UD9 motherboard.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#25 |
As per the image attached above, I discovered that multistreaming on my motherboard is possible under Windows 7. The options only became available when I had the headphones physically connected. However, I have yet to figure out any way to achieve the same thing under my Ubuntu 10.04 system. I've been messing around with it and searching for hours without success.
I did notice in alsamixer a Headphone option. If I connect headphones to the front of my case and leave that box ticked while playing audio in mplayer, I get the same audio stream simultaneously sent to both my front speakers and my headphones.
If I leave headphones enabled but mute the front speaker channel, both stop working. If I untick the headphone checkbox, both the headphones and front speaker channel also stop working. It certainly looks like these are both sharing the same channel, and I can't see any possible way I could redirect audio to one specific set of speakers. This is all aplay shows (aside from some other "surroundXX" plugs that seem unlikely to be useful):
$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
Playback/
front:CARD=
HDA Intel, ALC889 Analog
Front speakers
...
surround51:
HDA Intel, ALC889 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
...
iec958:
HDA Intel, ALC889 Digital
IEC958 (S/PDIF) Digital Audio Output
$
Would attaching anything else in particular be useful?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#26 |
alsa seem only implement the capture devices only
do you have additional capture device (hw:0,2) ?
arecord -l
Take a look at block diagram of alc889 datasheet and the codec-info section in the output of alsa-info.sh
Ten DAC channels support 16/20/24-bit PCM format for 7.1 sound playback, plus 2 channels of
concurrent independent stereo sound output (multiple streaming) through the front panel output
The "6stack" or "6stack-dig" model connected both HP and Line Out (Green) to the front channel [Audio Output].
you need to implement a new model "6stack-
0x02, 0x03, 0x04, 0x05 [Audio Output] connected to those four [Pin complex] Line out at Ext Rear ( Color = green, black, orange ,grey )
0x25 [Audio Output] - connect to [Pin complex] HP out at ext front
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#27 |
Created an attachment (id=32743)
Output of alsa-info.txt on my ALC889.
Includes "arecord -l" output under the "ARECORD" section.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#28 |
...implement a new model "6stack-
I started looking through my kernel's source at sound/pci/
I appreciate your help, but don't fully understand the situation. Why does WINE need to get multistream functionality working, when a model in ALSA with that support doesn't appear to exist? I would have figured nobody could use such functionality yet, so it wouldn't be useful for WINE to try. UT3 works, and personally I've never actually used the front HP port before looking at this bug either - 3.5mm headphones plug into the receiver.
I would be very happy to test any patches though, if you feel up to it.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#29 |
Alsa works very well with multi-channel. I would take a look at the alsa sources for this alsa program that works out of the box:
speaker-test
I am not a c/c++ programmer so I leave it to you.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#30 |
(In reply to comment #27)
> Alsa works very well with multi-channel.
Nobody has said otherwise. multi-channel != multistreaming, and multistreaming is already possible if you have multiple output devices (which I previously mentioned). Raymond is talking about multistreaming between the read analog and front analog ports of the same device through ALSA, which doesn't seem to be supported.
I'm not sure why getting this sorted out is a requirement to get multi-channel working but I'm not a WINE programmer.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#31 |
(In reply to comment #27)
> Alsa works very well with multi-channel. I would take a look at the alsa
> sources for this alsa program that works out of the box:
>
> speaker-test
>
> I am not a c/c++ programmer so I leave it to you.
ALSA require sound card to use "surround40" , "surround51" to play multi-channels
it is ok if you are using the onboard HDA with 6 audio jacks in rear panel
if you look at the above URL of intel desktop audio support
when your Micro ATX motherboard only has three audio jacks
you need to configure Configuring 6-Channel Audio and retask "Mic" and "line" for output
Item Description
A Line In [retaskable as Rear Left/Right Out]
B Line Out [Front Left/Right Out]
C Mic In [retaskable as Center/LFE (Subwoofer) Out]
the other sound cards may need to change the "channel mode" from "2" to "6" and that switch is hooked with the "surround51" device in /usr/share/
but winealsa does not use those devices name
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#32 |
(In reply to comment #18)
> Thanks Raymond.
>
> > Doesn't UT3 use OpenAL?
> Just took a look at the OpenAL WikiPedia page, and it does. So does UT2004
> though, but that didn't work.
>
> I noticed BioShock was on the list, so I tried a BioShock demo I downloaded
> ages ago. It had an option for 5.1... looked promising, but again no success.
> Tried restarting the app, noticed 5.1 was still selected, but still no
> multi-channel. Must be something else that's special about UT3...
you need to setup the parameters in .alsoftrc for those openal games if you are using openal-soft in linux
## format:
# Sets the output format. Can be one of:
# AL_FORMAT_MONO8 (8-bit mono)
# AL_FORMAT_STEREO8 (8-bit stereo)
# AL_FORMAT_QUAD8 (8-bit 4-channel)
# AL_FORMAT_51CHN8 (8-bit 5.1 output)
# AL_FORMAT_61CHN8 (8-bit 6.1 output)
# AL_FORMAT_71CHN8 (8-bit 7.1 output)
# AL_FORMAT_MONO16 (16-bit mono)
# AL_FORMAT_STEREO16 (16-bit stereo)
# AL_FORMAT_QUAD16 (16-bit 4-channel)
# AL_FORMAT_51CHN16 (16-bit 5.1 output)
# AL_FORMAT_61CHN16 (16-bit 6.1 output)
# AL_FORMAT_71CHN16 (16-bit 7.1 output)
# AL_FORMAT_MONO32 (32-bit float mono)
# AL_FORMAT_STEREO32 (32-bit float stereo)
# AL_FORMAT_QUAD32 (32-bit float 4-channel)
# AL_FORMAT_51CHN32 (32-bit float 5.1 output)
# AL_FORMAT_61CHN32 (32-bit float 6.1 output)
# AL_FORMAT_71CHN32 (32-bit float 7.1 output)
format = AL_FORMAT_STEREO16
## frequency:
# Sets the output frequency.
frequency = 44100
## drivers:
# Sets the backend driver list order, comma-seperated. Unknown backends and
# duplicated names are ignored. Unlisted backends won't be considered for use
# unless the list is ended with a comma (eg. 'oss,' will list OSS first
# followed by all other available backends, while 'oss' will list OSS only).
# An empty list means the default.
#drivers = alsa,pulse,
drivers = alsa
## layout:
# Sets the virtual speaker layout. Values are specified in degrees, where 0 is
# straight in front, negative goes left, and positive goes right. Unspecified
# speakers will remain at their default positions (which are dependant on the
# output format). Available speakers are back-left(bl), side-left(sl), front-
# left(fl), front-center(fc), front-right(fr), side-right(sr), back-right(br),
# and back-center(bc).
#layout =
##
## ALSA backend stuff
##
[alsa]
## device:
# Sets the device name for the default playback device.
device = front:0
## capture:
# Sets the device name for the default capture device.
capture = hw:0,0
## mmap:
# Sets whether to try using mmap mode (helps reduce latencies and CPU
# consumption). If mmap isn't available, it will automatically fall back to
# non-mmap mode. True, yes, on, and non-0 values will attempt to use mmap. 0
# and anything else will force mmap off.
mmap = true
##
## OSS backend stuff
##
[oss]
## device:
# Sets the device name for OSS output.
device = /dev/dsp
## capture:
# Sets the device name for OSS capture.
capture = /dev/dsp
##
## PulseAudio backend stuff
##
[pulse]
## spawn-server:
# Attempts to spawn a PulseAudio server when requesting to open a PulseAudio
# device. Not...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#33 |
(In reply to comment #2)
> Amazingly this bug doesn't seem to have been filed before (support request for
> multi-channel audio) so correcting the details to make more sense. This isn't
> likely to be done for a while thought due to a) drivers not being that great,
> b) EAX missing entirely from drivers and other reasons which I'm sure the devs
> can give you.
http://
There is Accelerated ALSA Library for Linux for emu10k1
and
Configuring Surround sound in Linux if you are using openal
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#34 |
> you need to setup the parameters in .alsoftrc for those openal games if you are
> using openal-soft in linux
I certainly did that, and I've tried various configurations. I must have got it correct if it works in UT3. Surround also works in native games like Doom 3, Quake 4, and Prey. I even get rear speaker channel audio in the oldies Majesty and Return to Castle Wolfenstein.
As an additional test to the games above, I just tried Wolfenstein under WINE. No surround there either, unfortunately (even though it's another OpenAL game).
As for the hardware-
http://
Both Urkle (from the forum thread) and yourself are probably both referring to the project here (last updated 2004!):
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#35 |
That accelerated alsa driver for emu10k1 only provide stereo control of those hardware mixing volume controls provided by snd-emu10k1 similar to
http://
It actually playback different openal mono source through different subdevices instead of mixing those mono sources by openal
That implementation is the basis if winealsa want to provide dsound hardware secondary buffers for ds3d
you will need to enhance the openal-alsa-emu10k1 to control the rear speakers since the volume of the rear speakers is controlled by another sets of "EMU10K1 PCM Volume" , "EMU10K1 PCM Send Route" and "EMU10K1 Send Volume" of the rear device
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#36 |
A lot of people still have a Realtek ALC650 sound card so please support multichannel for it too (for example I have a VIA KT333 chipset including it).
Thank you for your growing interest.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#37 |
(In reply to comment #34)
> A lot of people still have a Realtek ALC650 sound card so please support
> multichannel for it too (for example I have a VIA KT333 chipset including it).
>
> Thank you for your growing interest.
it the application does not provide 6 channels (e.g. openal only pan the front/rear speaker to provide 3D effect and don't have any signal on Subwoofer
if you want to watch movie 5.1 or DTS , why don't you use those linux media application (e.g. mplayer or vlc )
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#38 |
Applications that have support 5.1 channel support, work only with Wine and I also need because they work better than GNU/Linux applications for a specific task:
-WinampAC3Filter plugin for Winamp (Winamp is the only application that has a decent playlist with perfectly optimized controls imho - I mean I can set the imput plugins to display something like "Artist - Album - string of my choosing.filetype - another string of my choosing")
-older games that rely much on multichannel to inform the player of the position of things all around like: Counter Strike, Star Trek Armada II, Homeworld 1 2, Giants - Citizen Kabuto, Command and Conquer 1 2 3
-take utorrent for example - the programmers use the Wine platform to make sure it will work very well in Windows. Programmers may (imho they already) use Wine to check games for Windows and even compiling them using Wine libraries to make them go faster and smoother and would be very happy to not have to load Windows instead of Wine just to test if multichannel sounds work properly
-I am sure I will have more and more needs to use multichannel in Wine as time passes (for example 3D max Studio or Adobe * - make movies in multichannel and view them without rendering just to check sounds)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#39 |
(In reply to comment #36)
>
> -older games that rely much on multichannel to inform the player of the
> position of things all around like: Counter Strike, Star Trek Armada II,
> Homeworld 1 2, Giants - Citizen Kabuto, Command and Conquer 1 2 3
Those 3D game work best work with headphone when your sound card support Head Related Transfer Function , Interaural time-delay and interaural level difference
The sound signal arrive at slightly different time/level at your left and right ear when your are wearing a headphone since your left and right ears can determine the location of the sound source from the delay and level difference
if your are using 4 speakers , it will depend on whether the speakers are placed at the desired position (same distance ) and angle ( cross-talk between the speakers ) for your ear to get the same delay/level as same as in the game environment ,
Those 3D game usually use surround40 instead of surround51 unless your sound card (e.g. SB Live! emu10k1) has a treble/base control to boost the bass and specical control reverb , echo using FX chip
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#40 |
(In reply to comment #0)
> Winamp with Winamp AC3 Filter 1.01a performs better than Amarok 1.4.
> Also the very old game Starcraft has support for surround.
> Therefore please give more importance to the following:
>
> Allow DirectSound acces to Alsa, for the rear left, rear right, center and
> woofer speakers.
>
> Yes, Linux does support surround. Use "alsamixer" to deactivate the mute
> on the other speakers. Use Amarok, Totem, or their base Xine, to test surround.
> You have to go to settings, select Xine Engine and select 5.1 surround (in Xine
> you should select first "Master of the known universe" :) )
>
> I am attaching an example of a file that the Xine engine cannot play,
> but Winamp with Winamp AC3 Filter 1.01a with integrated dts support can.
did you delete the example ?
winealsa does support 6channels unoffically
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#41 |
To enhance the multi channels support of winealsa
you also need to enhance the mixer.c to add those "Front", "surround" , "center" , "lfe" and "side" playback volume controls
Take a look at the output
WINETEST_
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#42 |
(In reply to comment #25)
> Created an attachment (id=32743) [details]
> Output of alsa-info.txt on my ALC889.
>
> Includes "arecord -l" output under the "ARECORD" section.
DAC5 is node 0x25
/* FIXME: setup DAC5 */
spec->alt_dac_nid = 0x25;
spec->
you just need to add init_verb to connect 0x1b to 0x26 and create "Headphone Playback volume" at node 0x26
may be an "Independent HP switch" which allow you to switch the connection 0x1b from 0xc to 0x26
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0000373c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80 100
Pin Default 0x02214c20: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0xc0: OUT HP VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x25 [Audio Output] wcaps 0x11: Stereo
Converter: stream=0, channel=0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x3e, nsteps=0x40, stepsize=0x03, mute=0
Amp-Out vals: [0x3e 0x3e]
Connection: 2
0x25 0x0b
Changed in wine (Ubuntu): | |
status: | Incomplete → Confirmed |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#43 |
I don't know if this the right thread for this, but I think I fixed a bug in the multi-channel code:
The problem was: sound in PES 2010 only partially works: effects work, music and commentator doesn't.
Debugging the problem, I noticed that the "cp_fields" function in dlls/dsound/mixer.c is called with device-
diff --git a/dlls/
index 846278e..5ed8d90 100644
--- a/dlls/
+++ b/dlls/
@@ -295,6 +295,7 @@ static inline void cp_fields(const IDirectSoundBuf
if (device-
+ (device-
if (device-
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#44 |
(In reply to comment #41)
> I don't know if this the right thread for this, but I think I fixed a bug in
> the multi-channel code:
>
> The problem was: sound in PES 2010 only partially works: effects work, music
> and commentator doesn't.
>
> Debugging the problem, I noticed that the "cp_fields" function in
> dlls/dsound/mixer.c is called with device-
> dsb->pwfx-
> there, I added 8 vs. 2 channels and it worked perfectly. Here's the small
> patch:
Patches should be sent to <email address hidden>. See http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#45 |
(In reply to comment #41)
> I don't know if this the right thread for this, but I think I fixed a bug in
> the multi-channel code:
>
> The problem was: sound in PES 2010 only partially works: effects work, music
> and commentator doesn't.
>
> Debugging the problem, I noticed that the "cp_fields" function in
> dlls/dsound/mixer.c is called with device-
> dsb->pwfx-
> there, I added 8 vs. 2 channels and it worked perfectly. Here's the small
> patch:
>
> diff --git a/dlls/
> index 846278e..5ed8d90 100644
> --- a/dlls/
> +++ b/dlls/
> @@ -295,6 +295,7 @@ static inline void cp_fields(const IDirectSoundBuf
> *dsb, const BYTE *ibuf
>
> if (device-
> (device-
> + (device-
> (device-
> dsb->convert(ibuf, obuf, istride, ostride, count, freqAcc, adj);
> if (device-
Committed: http://
thanks!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#46 |
(In reply to comment #43)
> (In reply to comment #41)
> patch:
> >
> > diff --git a/dlls/
> > index 846278e..5ed8d90 100644
> > --- a/dlls/
> > +++ b/dlls/
> > @@ -295,6 +295,7 @@ static inline void cp_fields(const IDirectSoundBuf
> > *dsb, const BYTE *ibuf
> >
> > if (device-
> > (device-
> > + (device-
> > (device-
> > dsb->convert(ibuf, obuf, istride, ostride, count, freqAcc, adj);
> > if (device-
>
> Committed:
> http://
>
> thanks!
Is wine implement dsound.vxd or dsound WDM ?
since dsound.vxd does not support 8 channels or float
dsound WDM , KMixer is responsible for resampling
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#47 |
*** Bug 29247 has been marked as a duplicate of this bug. ***
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#48 |
> > I am attaching an example of a file that the Xine engine cannot play,
> > but Winamp with Winamp AC3 Filter 1.01a with integrated dts support can.
>
> did you delete the example ?
>
> winealsa does support 6channels unoffically
>
> http://
I did not delete the example. The file has 5 MB and was not attached when I sent the message. Now I will use a public Ubuntu One link for the example:
http://
The example has sounds of lighting a match on each 5.1 speaker, and a seventh match heard on all speakers.
I succesfully played this in Debian Gnu/Linux on 5.1 speakers only with Amarok with libxine1-ffmpeg installed and in Windows with Winamp having Winamp AC3 Filter plugin.
I thank you for your good work.
affects: | wine (Ubuntu) → wine1.4 (Ubuntu) |
Changed in wine1.4 (Ubuntu): | |
status: | Confirmed → Triaged |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#49 |
This file is not what it appears to be. It's a recording of DTS pass-through over stereo PCM... This stereo wav file contains a bunch of noise that's interpreted as DTS codec audio by a receiver and perhaps sound cards.
This is obvious by opening the file in audacity or other editor. The sound of the match is loud and then fades to quiet, but audacity shows that the audio level for this file is constant(indicating it's not PCM data at all).
There are test files here, I'm just looking at them, now.
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#50 |
ALSA multi-channel support is implemented as of Wine 1.5.11 (d402231e3f148a
DSound nearly works, but needs some cleanup with regard to mixing streams with different numbers of channels (5.1->2, or 2->5.1, etc.). Fixing dsound is "on my list," and I think we'll close this bug when dsound's channel handling is fixed.
Please continue to post here for now if you have trouble related to multi-channel audio support. We may split off new bugs for the OSS and CA drivers if they're found to be inadequate.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#51 |
Nice, Andrew! Is there any documentation on how it can be used in the current wine release, or what works and what doesn't? My initial tests with a game didn't yield surround sound, but I guess that might be due to a lack of DirectSound support.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#52 |
There shouldn't be any need to set up Wine to use multi-channel audio. Except in the case of dsound, if an application supports it and your ALSA configuration is set up correctly, it should just work. I had the best results when using PulseAudio, as PA deals with most of the ALSA configuration for you.
After dsound is repaired, I'll do a more thorough investigation of the different setups and try to find what works best. For example, many ALSA configurations define devices like "surround51" or "surround40", which might work better, but would have to be added manually with the ALSAOutputDevices registry key (see <http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#53 |
Let me know if you want someone to help with testing. I have a surround51 device working in linux applications on an ALSA-only system. (After screwing things up so many times, Pulse is no longer welcome on my computer.) The card is an Audigy2 so I have hardware mixing, which I'm told is unusual for sound cards these days. I also happen to have a wine build environment with a recent git checkout.
FYI, I haven't witnessed working surround sound from wine yet, but then again I've only tried one game. I'm not sure what Windows applications would be likely to work.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#54 |
I'm confused help me out, OSS and CoreAudio can do SS?
AFAICT CoreAudio is only available under OSx, is this the same CoreAudio?
However is seams that ALSA is also supported and can even work with PA(pulseaudio).
I've a strange setup, I've likely described it above. I'm using Spdif to a receiver for all my audio and dmix does not work in this configuration. However PA can make use of the a52 ALSA module to achieve AC3/DTS passthrough. The only drawback is that DVDs and Blu-Ray are unencoded and reencoded, but I havn't noticed an issue on this 6 core box.
Thus I'd like to use PA and currently I've got two options for PA. The winePA driver and the ALSA PA driver.
A test application would be grand!
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#55 |
My Microsoft® LifeCam VX-2000 worked fine and perfectly in wine 1.4 versions but in the wine 1.5 versions it does get detected like in the 1.4 but the sound comes out garbled when I test the voice in WoW.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#56 |
<email address hidden>, please open a new bug and attach a log there with the debug channels mentioned at <http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#57 |
Most of apps (incl. winecfg) produce grunting sound when there's more than 2 channels. But even so Stalker CS (using OpenAL probably) produces clear sound on 5.1 profile. Also Zandronum sounds clear (but with bug #34887) when it uses dsound, but without dsound it grunts too.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#58 |
p.s. Xubuntu 13.10, Wine 1.7.6, Audigy
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#59 |
*** Bug 34887 has been marked as a duplicate of this bug. ***
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Forest (foresto) wrote : | #60 |
Looks like work in this is starting to take shape:
https:/
"Support for surround sound in DirectSound."
I haven't been able to verify that it actually works yet, but it is encouraging.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#61 |
This should be fixed in 1.7.34:
https:/
please retest.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#62 |
Thank you very much for fixing this bug.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#63 |
Resolved. Fixed.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#64 |
Closing bugs fixed in 1.7.37.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#65 |
Thanks to Mark Harmstone for doing the dsound work. Obviously many commits went into this work, so I'm adding a Fixed By SHA1 that points to where the work was largely finished.
Changed in wine: | |
status: | Confirmed → Fix Released |
Pretty sure Starcraft doesn't have support for actual multi-channel surround. If anything it may support "Dolby Pro Logic" or "Dolby Surround" neither of which are actual surround sound and don't require anything other than stereo from your soundcard (Pro Logic is decoded by a HiFi or amp that has that ability). Basically they are all "fake" surround.
Yeah, just checked, it's "Dolby Surround". There's nothing Wine needs to do to support this, it's already working, you just don't have the correct hardware connected to your PC.