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

This commit is contained in:
Francois Gouget 2009-03-28 11:23:18 +01:00 committed by Alexandre Julliard
parent e7c5759af1
commit 91d42b37ef
1 changed files with 22 additions and 23 deletions

View File

@ -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 */
/**************************************************************************