Hi,
I'm creating a KDE guidance module for wine. I'm stuck on something. winecfg tries to open each audio driver to get a list of available drivers. So far, I've just put in the list of all possible drivers, but I want to get a list consistent with winecfg. I don't know how to go about testing which drivers are available. I'm using regedit for settings, so I'm not linking to wine so I can't just use the function(s) provided in wine.
Also, I'd like to put in a button to test if sound is working. Is there any software included in wine to play a wav? It needs to be something that would be installed by default when wine is installed, rather than something that's just in the source like the tests in winmm.
Thanks for any help ~Yuriy
On 7/20/06, Yuriy yuriy.kozlov@gmail.com wrote:
I'm creating a KDE guidance module for wine. I'm stuck on something. winecfg tries to open each audio driver to get a list of available drivers. So far, I've just put in the list of all possible drivers, but I want to get a list consistent with winecfg. I don't know how to go about testing which drivers are available. I'm using regedit for settings, so I'm not linking to wine so I can't just use the function(s) provided in wine.
How about adding a commandline option to wine's winecfg? e.g. winecfg /audio /list ? That way even if Wine changes, you'll get the right answer still.
Also, I'd like to put in a button to test if sound is working. Is there any software included in wine to play a wav? It needs to be something that would be installed by default when wine is installed, rather than something that's just in the source like the tests in winmm.
That's a very good question. In Windows, you can do this with sndrec32 /play /close "filename.wav" See http://groups.google.com/group/comp.os.ms-windows.win95.misc/msg/07dc7829881... Looks like sndrec32 allows either - or / as the option separator: http://groups.google.com/group/comp.os.ms-windows.win95.misc/msg/95b629a48e8... Wine doesn't have an app like this yet, but it ought to. It'd be easy to write a first cut. - Dan
On 7/21/06, Dan Kegel dank@kegel.com wrote:
On 7/20/06, Yuriy yuriy.kozlov@gmail.com wrote:
Also, I'd like to put in a button to test if sound is working. Is there any software included in wine to play a wav? It needs to be something that would be installed by default when wine is installed, rather than something that's just in the source like the tests in winmm.
That's a very good question. In Windows, you can do this with sndrec32 /play /close "filename.wav" See http://groups.google.com/group/comp.os.ms-windows.win95.misc/msg/07dc7829881... Looks like sndrec32 allows either - or / as the option separator: http://groups.google.com/group/comp.os.ms-windows.win95.misc/msg/95b629a48e8... Wine doesn't have an app like this yet, but it ought to. It'd be easy to write a first cut.
- Dan
Any pointers on where to start, or anybody else who wants to take this up? Writing a sndrec32 program for wine that is. (I have no real experience with C and windows programming) ~Yuriy
Any pointers on where to start, or anybody else who wants to take this
Though I haven't written much C code, I would start by reviewing the code in wine/programs and get a feel for how the other programs are written and how to add controls to forms etc. And read up on the windows API, specifically PlaySound.