dsound: Tune some parameters to make pulseaudio work.

This commit is contained in:
Maarten Lankhorst 2008-08-18 21:00:26 +02:00 committed by Alexandre Julliard
parent 944cb7ea15
commit dc22442141
3 changed files with 6 additions and 6 deletions

View File

@ -1140,7 +1140,7 @@ IDirectSoundCaptureBufferImpl_Start(
if (device->buffer) {
int c;
DWORD blocksize = DSOUND_fraglen(device->pwfx->nSamplesPerSec, device->pwfx->nBlockAlign);
DWORD blocksize = 4 * DSOUND_fraglen(device->pwfx->nSamplesPerSec, device->pwfx->nBlockAlign);
device->nrofpwaves = device->buflen / blocksize + !!(device->buflen % blocksize);
TRACE("nrofpwaves=%d\n", device->nrofpwaves);

View File

@ -90,9 +90,9 @@ HRESULT mmErr(UINT err)
/* All default settings, you most likely don't want to touch these, see wiki on UsefulRegistryKeys */
int ds_emuldriver = 0;
int ds_hel_buflen = 32768;
int ds_snd_queue_max = 10;
int ds_snd_queue_min = 6;
int ds_hel_buflen = 32768 * 2;
int ds_snd_queue_max = 20;
int ds_snd_queue_min = 14;
int ds_snd_shadow_maxsize = 2;
int ds_hw_accel = DS_HW_ACCEL_FULL;
int ds_default_playback = 0;

View File

@ -46,13 +46,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(dsound);
*/
DWORD DSOUND_fraglen(DWORD nSamplesPerSec, DWORD nBlockAlign)
{
DWORD fraglen = 512 * nBlockAlign;
DWORD fraglen = 256 * nBlockAlign;
/* Compensate for only being roughly accurate */
if (nSamplesPerSec <= 26000)
fraglen /= 2;
if (nSamplesPerSec <= 12000)
if (nSamplesPerSec <= 10000)
fraglen /= 2;
if (nSamplesPerSec >= 80000)