http://bugs.winehq.org/show_bug.cgi?id=23902
--- Comment #50 from Raymond superquad.vortex2@gmail.com 2010-08-23 21:33:26 --- (In reply to comment #44)
Created an attachment (id=30313)
--> (http://bugs.winehq.org/attachment.cgi?id=30313) [details]
winealsa.drv: Add "Master Front" control as "Master" control
Thanks Raymond!
If i add "Master Front" in "mastelem" condition, then the sound initialization is successful, and the game will not crash?
Please check this patch, especially if your sound card has a "Master" control.
sorry, it seem that I am wrong ,
"Master Front" of your codec is the volume control associated with the DAC [Audio Output] which is MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT "Front" and "Headphone" are volume control associated with the [Pin Complex] MIXERLINE_COMPONENTTYPE_DST_SPEAKERS
static const struct mixerlinetype { const char *name; DWORD cmpt; } converttable[] = { { "Master", MIXERLINE_COMPONENTTYPE_DST_SPEAKERS, }, { "Capture", MIXERLINE_COMPONENTTYPE_DST_WAVEIN, }, { "PCM", MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT, }, { "PC Speaker", MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER, }, { "Synth", MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER, }, { "Headphone", MIXERLINE_COMPONENTTYPE_DST_HEADPHONES, }, { "Mic", MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE, }, { "Aux", MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY, }, { "CD", MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC, }, { "Line", MIXERLINE_COMPONENTTYPE_SRC_LINE, }, { "Phone", MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE, }, { "Digital", MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE, }, { "Front Mic", MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE, }, };