https://bugs.winehq.org/show_bug.cgi?id=45189
Bug ID: 45189 Summary: Terraria: No sound, and small bugs after wine 3.4 Product: Wine Version: 3.8 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: gzoli44@gmail.com Distribution: ---
Created attachment 61404 --> https://bugs.winehq.org/attachment.cgi?id=61404 Terraria run log (closed after loaded, and should play sound)
After upgrading form wine 3.4, Terraria does not have sound. None of the newer versions fixed this.
dotnet40 and xna40 installed with winetricks. Using 64-bit wineprefix with wine 3.4 has no problems with Terraria. Running Terraria with wine 3.8, 64 or 32-bit has no sound.
Also there are some weird in game bugs, like can't use some items alternate mode with right click, and selecting items in inventory with right click makes the inventory disappear until held down, and rapidly "grabs" items from the stack selected (should able to select 1, but just clicking selects like 3-5). Related to sound : After changing Music volume in-game, it resets to 0%. Sound and Ambient volume not affected.
There were no bugs with wine 3.4, and just by downgrading wine these issues are fixed.
Using: Terraria 1.3.5.3 Wine 3.8 Arch Linux 4.16.8-1-ARCH x86_64
This bug was reproduced just before posting.
https://bugs.winehq.org/show_bug.cgi?id=45189
gzoli44@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux
https://bugs.winehq.org/show_bug.cgi?id=45189
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=45189
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- Sound bugs sounds like a problem with builtin xaudio, which is preferred since wine 3.5. Does using native xaudio + override help?
https://bugs.winehq.org/show_bug.cgi?id=45189
gzoli44@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #2 from gzoli44@gmail.com --- (In reply to Zebediah Figura from comment #1)
Sound bugs sounds like a problem with builtin xaudio, which is preferred since wine 3.5. Does using native xaudio + override help?
Setting xaudio2_? to native did fix it. Don't know which one, since I don't know which one Terraria uses.
Don't know how the hell the minor bugs described above are related, but they are fixed too.
The only problem now, is that the audio is distorted now. Don't know how to explain it, it sounds low quality "8bit-y", and has constant noise. But sometimes it goes back to normal. After changing xaudio to native, Starcraft (the only other app I use with wine) still has normal audio, and I don't experience distorted audio there.
Turns out the original problem was not a bug, so sorry for that, I hope this helps someone with the same problem.
Marked as resolved, since the original problem is solved.
https://bugs.winehq.org/show_bug.cgi?id=45189
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Terraria: No sound, and |Terraria has no sound and |small bugs after wine 3.4 |other glitches with builtin | |xaudio2 Component|-unknown |xaudio2 Resolution|FIXED |--- Status|RESOLVED |UNCONFIRMED
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- (In reply to gzoli44 from comment #2)
Don't know how the hell the minor bugs described above are related, but they are fixed too.
Timing issues perhaps?
Turns out the original problem was not a bug, so sorry for that, I hope this helps someone with the same problem.
Well, it's still a bug—builtin xaudio2 should ideally work as well as native. Reopening accordingly.
A console log with the channels described in https://wiki.winehq.org/Sound#What_to_include_when_filing_a_bug would be helpful, if you can obtain one.
https://bugs.winehq.org/show_bug.cgi?id=45189
--- Comment #4 from gzoli44@gmail.com --- (In reply to Zebediah Figura from comment #3)
A console log with the channels described in https://wiki.winehq.org/Sound#What_to_include_when_filing_a_bug would be helpful, if you can obtain one.
I'm glad to help :) Added as attachment.
Turns out I only need to override xaudio2_6 to native to make it work. Still have distortions on the other hand. It seems like distortions are more common on heavy CPU load, but that might be incorrect.
During logging I: Started the game, and moved the mouse over the menu items, which should make sound, and clicked exit. I heard no distortions I described during this. There are 3 logs included: One with no xaudio overridden (no sound) One with all xaudio overridden And one with only xaudio2_6 overridden.
https://bugs.winehq.org/show_bug.cgi?id=45189
--- Comment #5 from gzoli44@gmail.com --- Created attachment 61408 --> https://bugs.winehq.org/attachment.cgi?id=61408 Terraria sound log
https://bugs.winehq.org/show_bug.cgi?id=45189
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #6 from Zebediah Figura z.figura12@gmail.com --- Thanks.
2200.638:0053:trace:xaudio2:IXAudio2Impl_CreateSourceVoice (0xc8ac530)->(0x513cb94, 0x513cb60, 0x0, 4.000000, 0x513b0cc, (nil), (nil)) 2200.638:0053:trace:xaudio2:dump_fmt wFormatTag: 0xfffe (WAVE_FORMAT_EXTENSIBLE) 2200.638:0053:trace:xaudio2:dump_fmt nChannels: 2 2200.638:0053:trace:xaudio2:dump_fmt nSamplesPerSec: 44100 2200.638:0053:trace:xaudio2:dump_fmt nAvgBytesPerSec: 6000 2200.638:0053:trace:xaudio2:dump_fmt nBlockAlign: 2230 2200.638:0053:trace:xaudio2:dump_fmt wBitsPerSample: 16 2200.638:0053:trace:xaudio2:dump_fmt cbSize: 22 2200.638:0053:trace:xaudio2:dump_fmt dwChannelMask: 00000003 2200.638:0053:trace:xaudio2:dump_fmt Samples: 0010 2200.638:0053:trace:xaudio2:dump_fmt SubFormat: {00000161-0000-0010-8000-00aa00389b71} 2200.638:0053:warn:xaudio2:IXAudio2Impl_CreateSourceVoice OpenAL can't convert this format!
This looks like the culprit, so this is a duplicate of bug 34902—in this case it needs WMA conversion.
*** This bug has been marked as a duplicate of bug 34902 ***
https://bugs.winehq.org/show_bug.cgi?id=45189
--- Comment #7 from Zebediah Figura z.figura12@gmail.com --- Whoops, typo'ed bug number :-/
*** This bug has been marked as a duplicate of bug 39402 ***
https://bugs.winehq.org/show_bug.cgi?id=45189
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Ken Sharp imwellcushtymelike@gmail.com --- Closing bugs marked as duplicate.