Page 1 of 1

[SOLVED] No sound in wine

PostPosted: Jul 30th, '12, 19:46
by mla
I am trying to get sound working in a Windows program run via wine. The advice I get on the Net is to use winecfg to ensure that ALSA is on and OSS is off. Trouble is, the Audio tab of winecfg gives me no such options. All pull down menus contain just "(System default)" and nothing else. If I click on the "Test Sound" button, all that happens is that the following appears in the terminal window from which winecfg is run:

err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:mmdevapi:DllGetClassObject Driver initialization failed
err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004005
err:ole:CoGetClassObject no class object {bcde0395-e52f-467c-8e3d-c4579291692e} could be created for context 0x1


Searching the net again, I am advised to use the command "winetricks sound=alsa", but there does not seem to be such a command available on/for Mageia.

Any suggestions anybody?

Re: No sound in wine

PostPosted: Jul 30th, '12, 21:58
by doktor5000
Just run the program normally via wine without changing anything, sound should be going to PulseAudio by default, if you haven't disabled that.
FWIW, the audio part of winecfg is rather crashy, or at least the Test button, even on working setups.

Also, you should not "search the net" first but maybe directly ask here before, as there are some specialities for most distributions
with integration and sound setup and such, so you can't just blindly apply any hint without understandind and adapting it,
after knowing if it would be really needed.

Re: No sound in wine

PostPosted: Jul 30th, '12, 23:04
by mla
Trouble is, without changing anything, Windows programs produce no sound at all under wine. I wouldn't be even thinking about fiddling with winecfg otherwise. :-)

Re: No sound in wine

PostPosted: Jul 31st, '12, 16:13
by mla
OK, problem solved by another Google search. :-) Moved .wine aside, let wine reinitialise it, and moved my own stuff into the new .wine. Obviously there was some kind of incompatibility with the old wine configuration.