<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks, vitamin!<br>
<br>
Using "wine regedit", I was able to add the following registry keys
to enable 32-bit, 96 kHz audio capture and playback
(~/.wine/user.reg):<br>
<blockquote><tt>[Software\\Wine\\Alsa Driver] 1300973815</tt><br>
<tt> "AutoScanCards"="no"</tt><br>
<tt> "AutoScanDevices"="yes"</tt><br>
<tt> "DeviceCount"="1"</tt><br>
<tt> "DeviceCTL1"="default"</tt><br>
<tt> "DevicePCM1"="default"</tt><br>
<tt> "UseDirectHW"="yes"</tt><br>
<tt> </tt><br>
<tt> [Software\\Wine\\DirectSound] 1300976391</tt><br>
<tt> "DefaultBitsPerSample"="32"</tt><br>
<tt> "DefaultSampleRate"="96000"</tt><br>
<tt> "HardwareAcceleration"="Full"</tt><br>
<tt> </tt><br>
<tt> [Software\\Wine\\Drivers] 1300939175</tt><br>
<tt> "Audio"="alsa"</tt><br>
</blockquote>
In WINE 1.3.15, this allows me to play and record at 32-bit and
48kHz. I can also record at 32-bit and 96kHz; however, the 96kHz
playback is very distorted.<br>
<br>
Curiously, the files I record in WINE (using Adobe Audition 3.0)
play just fine using Audacity on the same Linux host. But, playback
within WINE is the problem. Adjusting the buffer size in .asoundrc
affects the distortion, but I've not been able to fix the problem.<br>
<br>
Any suggestions? Or, should I file this as a bug for dsound in
wine?<br>
<br>
Thanks!<br>
<br>
Trevor<br>
<br>
FWIW, here's my current .asoundrc file:<br>
<br>
<blockquote><tt># Set default sound card</tt><br>
<tt> # Useful so that all settings can be changed to a different
card here.</tt><br>
<tt> pcm.mia_out {</tt><br>
<tt> type hw</tt><br>
<tt> card 0</tt><br>
<tt> device 0</tt><br>
<tt> subdevice 0</tt><br>
<tt> #rate 96000</tt><br>
<tt> #format S32_LE</tt><br>
<tt> #channels 2</tt><br>
<tt> }</tt><br>
<tt> pcm.mia_in {</tt><br>
<tt> type hw</tt><br>
<tt> card 0</tt><br>
<tt> device 0</tt><br>
<tt> subdevice 0</tt><br>
<tt> #rate 96000</tt><br>
<tt> #format S32_LE</tt><br>
<tt> #channels 2</tt><br>
<tt> }</tt><br>
<tt> pcm.dmixer {</tt><br>
<tt> type dmix</tt><br>
<tt> ipc_key 1024</tt><br>
<tt> slave {</tt><br>
<tt> # This stuff provides some fixes for latency
issues.</tt><br>
<tt> # buffer_size should be set for your audio chipset.</tt><br>
<tt> pcm mia_out</tt><br>
<tt> period_time 0</tt><br>
<tt> period_size 1024</tt><br>
<tt> buffer_size 8192</tt><br>
<tt> rate 96000</tt><br>
<tt> format S32_LE</tt><br>
<tt> channels 2</tt><br>
<tt> }</tt><br>
<tt> </tt><br>
<tt> bindings {</tt><br>
<tt> 0 0</tt><br>
<tt> 1 1</tt><br>
<tt> }</tt><br>
<tt> }</tt><br>
<tt> # Allow reading from the default device.</tt><br>
<tt> # Also known as record or capture.</tt><br>
<tt> pcm.dsnooper {</tt><br>
<tt> type dsnoop</tt><br>
<tt> ipc_key 2048</tt><br>
<tt> #slave.pcm mia_in</tt><br>
<tt> slave {</tt><br>
<tt> # This stuff provides some fixes for latency
issues.</tt><br>
<tt> # buffer_size should be set for your audio chipset.</tt><br>
<tt> pcm mia_in</tt><br>
<tt> period_time 0</tt><br>
<tt> period_size 1024</tt><br>
<tt> buffer_size 8192</tt><br>
<tt> rate 96000</tt><br>
<tt> format S32_LE</tt><br>
<tt> channels 2</tt><br>
<tt> }</tt><br>
<tt> bindings {</tt><br>
<tt> 0 0</tt><br>
<tt> 1 1</tt><br>
<tt> }</tt><br>
<tt> }</tt><br>
<tt> </tt><br>
<tt> # This is what we want as our default device</tt><br>
<tt> # a fully duplex (read/write) audio device.</tt><br>
<tt> pcm.duplex {</tt><br>
<tt> type asym</tt><br>
<tt> playback.pcm "dmixer"</tt><br>
<tt> capture.pcm "dsnooper"</tt><br>
<tt> }</tt><br>
<tt> </tt><br>
<tt> ###################</tt><br>
<tt> # CONVERSION PLUG #</tt><br>
<tt> ###################</tt><br>
<tt> # Setting the default pcm device allows the conversion</tt><br>
<tt> # rate to be selected on the fly.</tt><br>
<tt> # duplex mode allows any alsa enabled app to read/write</tt><br>
<tt> # to the dmix plug (Fixes a problem with wine).</tt><br>
<tt> </tt><br>
<tt> pcm.!default {</tt><br>
<tt> type plug</tt><br>
<tt> slave.pcm "duplex"</tt><br>
<tt> }</tt><br>
<tt> ########</tt><br>
<tt> # AOSS #</tt><br>
<tt> ########</tt><br>
<tt> # OSS dsp0 device (OSS needs only output support, duplex will
break some stuff)</tt><br>
<tt> pcm.dsp0 {</tt><br>
<tt> type plug</tt><br>
<tt> slave.pcm "dmixer"</tt><br>
<tt> }</tt><br>
<tt> </tt><br>
<tt> # OSS control for dsp0 (needed?...this might not be useful)</tt><br>
<tt> ctl.dsp0 {</tt><br>
<tt> type plug</tt><br>
<tt> slave.pcm "mia_out"</tt><br>
<tt> }</tt><br>
<tt> # OSS control for dsp0 (default old OSS is mixer0)</tt><br>
<tt> ctl.mixer0 {</tt><br>
<tt> type plug</tt><br>
<tt> slave.pcm "mia_out"</tt><br>
</blockquote>
<br>
On 03/15/2011 09:11 PM, vitamin wrote:
<blockquote cite="mid:1300241516.m2f.57911@forum.winehq.org"
type="cite">
<pre wrap="">Trevor Bowen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks! Where would those registry settings be stored in the tree?
</pre>
</blockquote>
<pre wrap="">
<a class="moz-txt-link-freetext" href="http://wiki.winehq.org/UsefulRegistryKeys">http://wiki.winehq.org/UsefulRegistryKeys</a>
</pre>
</blockquote>
</body>
</html>