From f09eb790c98803e40c626a39127813c15c6341f0 Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Mon, 3 Oct 2005 10:16:32 +0000 Subject: [PATCH] Replace registry editing instructions with winecfg. --- dlls/winmm/wineoss/audio.c | 7 ++++--- dlls/winmm/wineoss/dsrender.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dlls/winmm/wineoss/audio.c b/dlls/winmm/wineoss/audio.c index ca7cdd6a6bb..498e08f1dc2 100644 --- a/dlls/winmm/wineoss/audio.c +++ b/dlls/winmm/wineoss/audio.c @@ -509,10 +509,11 @@ DWORD OSS_OpenDevice(OSS_DEVICE* ossdev, unsigned req_access, return WAVERR_BADFORMAT; } /* check if the fragment sizes are the same */ - if (ossdev->audio_fragment != (frag ? *frag : 0) ) { + if (ossdev->audio_fragment != (frag ? *frag : 0) ) + { ERR("FullDuplex: Playback and Capture hardware acceleration levels are different.\n" - "Create string value : \"HardwareAcceleration\" = \"Emulation\" in the registry\n" - "under [HKEY_CURRENT_USER\\Software\\Wine\\DirectSound].\n"); + "Please run winecfg, open \"Audio\" page and set\n" + "\"Hardware Acceleration\" to \"Emulation\".\n"); return WAVERR_BADFORMAT; } if (GetCurrentThreadId() != ossdev->owner_tid) diff --git a/dlls/winmm/wineoss/dsrender.c b/dlls/winmm/wineoss/dsrender.c index 0cc3f50f4d1..0c439fd502a 100644 --- a/dlls/winmm/wineoss/dsrender.c +++ b/dlls/winmm/wineoss/dsrender.c @@ -345,8 +345,8 @@ static HRESULT DSDB_MapBuffer(IDsDriverBufferImpl *dsdb) dsdb->fd, 0); if (dsdb->mapping == (LPBYTE)-1) { ERR("Could not map sound device for direct access (%s)\n", strerror(errno)); - ERR("Create string value : \"HardwareAcceleration\" = \"Emulation\" in the registry\n" - "under [HKEY_CURRENT_USER\\Software\\Wine\\DirectSound].\n"); + ERR("Please run winecfg, open \"Audio\" page and set\n" + "\"Hardware Acceleration\" to \"Emulation\".\n"); return DSERR_GENERIC; } TRACE("The sound device has been mapped for direct access at %p, size=%ld\n", dsdb->mapping, dsdb->maplen);