Commit 91d42b37 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

wineesd.drv: Move the wodDsXxx() functions around to avoid forward declarations.

parent e7c5759a
...@@ -212,9 +212,6 @@ typedef struct { ...@@ -212,9 +212,6 @@ typedef struct {
static WINE_WAVEOUT WOutDev [MAX_WAVEOUTDRV]; static WINE_WAVEOUT WOutDev [MAX_WAVEOUTDRV];
static WINE_WAVEIN WInDev [MAX_WAVEINDRV]; 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 */ /* These strings used only for tracing */
static const char *wodPlayerCmdString[] = { static const char *wodPlayerCmdString[] = {
"WINE_WM_PAUSING", "WINE_WM_PAUSING",
...@@ -228,6 +225,28 @@ static const char *wodPlayerCmdString[] = { ...@@ -228,6 +225,28 @@ static const char *wodPlayerCmdString[] = {
"WINE_WM_STOPPING", "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 * * Low level WAVE implementation *
*======================================================================*/ *======================================================================*/
...@@ -2071,26 +2090,6 @@ DWORD WINAPI ESD_widMessage(UINT wDevID, UINT wMsg, DWORD dwUser, ...@@ -2071,26 +2090,6 @@ DWORD WINAPI ESD_widMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
return MMSYSERR_NOTSUPPORTED; 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 */ #else /* !HAVE_ESD */
/************************************************************************** /**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment