[3/11] wineesd.drv: Move the wodDsXxx() functions around to avoid forward declarations.
Francois Gouget
fgouget at codeweavers.com
Sat Mar 28 05:23:18 CDT 2009
---
dlls/wineesd.drv/audio.c | 45 ++++++++++++++++++++++-----------------------
1 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/dlls/wineesd.drv/audio.c b/dlls/wineesd.drv/audio.c
index 105568c..a1c3fdb 100644
--- a/dlls/wineesd.drv/audio.c
+++ b/dlls/wineesd.drv/audio.c
@@ -212,9 +212,6 @@ typedef struct {
static WINE_WAVEOUT WOutDev [MAX_WAVEOUTDRV];
static WINE_WAVEIN WInDev [MAX_WAVEINDRV];
-static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv);
-static DWORD wodDsDesc(UINT wDevID, PDSDRIVERDESC desc);
-
/* These strings used only for tracing */
static const char *wodPlayerCmdString[] = {
"WINE_WM_PAUSING",
@@ -228,6 +225,28 @@ static const char *wodPlayerCmdString[] = {
"WINE_WM_STOPPING",
};
+
+/*======================================================================*
+ * Low level DSOUND implementation *
+ *======================================================================*/
+
+static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
+{
+ /* we can't perform memory mapping as we don't have a file stream
+ interface with esd like we do with oss */
+ MESSAGE("This sound card's driver does not support direct access\n");
+ MESSAGE("The (slower) DirectSound HEL mode will be used instead.\n");
+ return MMSYSERR_NOTSUPPORTED;
+}
+
+static DWORD wodDsDesc(UINT wDevID, PDSDRIVERDESC desc)
+{
+ memset(desc, 0, sizeof(*desc));
+ strcpy(desc->szDesc, "Wine EsounD DirectSound Driver");
+ strcpy(desc->szDrvname, "wineesd.drv");
+ return MMSYSERR_NOERROR;
+}
+
/*======================================================================*
* Low level WAVE implementation *
*======================================================================*/
@@ -2071,26 +2090,6 @@ DWORD WINAPI ESD_widMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
return MMSYSERR_NOTSUPPORTED;
}
-/*======================================================================*
- * Low level DSOUND implementation *
- *======================================================================*/
-static DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
-{
- /* we can't perform memory mapping as we don't have a file stream
- interface with esd like we do with oss */
- MESSAGE("This sound card's driver does not support direct access\n");
- MESSAGE("The (slower) DirectSound HEL mode will be used instead.\n");
- return MMSYSERR_NOTSUPPORTED;
-}
-
-static DWORD wodDsDesc(UINT wDevID, PDSDRIVERDESC desc)
-{
- memset(desc, 0, sizeof(*desc));
- strcpy(desc->szDesc, "Wine EsounD DirectSound Driver");
- strcpy(desc->szDrvname, "wineesd.drv");
- return MMSYSERR_NOERROR;
-}
-
#else /* !HAVE_ESD */
/**************************************************************************
--
1.6.2
More information about the wine-patches
mailing list