Fix #includes in a few more files to get ReactOS building again.

svn path=/trunk/; revision=39610
This commit is contained in:
Andrew Greenwood 2009-02-15 16:08:40 +00:00
parent c7273a56a6
commit a5d9170830
6 changed files with 36 additions and 11 deletions

View file

@ -14,7 +14,7 @@
#include <windows.h>
#include <ntddsnd.h>
#include <reactos/sndtypes.h>
#include <sndtypes.h>
#include <mmddk.h>
#include <mmebuddy.h>
#include <mment4.h>

View file

@ -13,7 +13,8 @@
*
* NOTES: MME Buddy was the best name I could come up with...
* The structures etc. here should be treated as internal to the
* library so should not be directly accessed elsewhere.
* library so should not be directly accessed elsewhere. Perhaps they
* can be moved to an internal header?
*/
#ifndef ROS_AUDIO_MMEBUDDY_H

View file

@ -194,7 +194,10 @@ MMRESULT
DestroySoundThread(
IN PSOUND_THREAD Thread)
{
/* TODO: Implement me! */
VALIDATE_MMSYS_PARAMETER( Thread );
SND_TRACE(L"Terminating sound thread\n");
Thread->Running = FALSE;
/* TODO: Implement me! Wait for thread to have finished? */
return MMSYSERR_NOTSUPPORTED;
}

View file

@ -155,8 +155,29 @@ EnqueueWaveHeader(
if ( ! FunctionTable->SubmitWaveHeader )
return MMSYSERR_NOTSUPPORTED;
return WaveHeaderOperation(FunctionTable->SubmitWaveHeader,
SoundDeviceInstance,
Header);
}
/*
A few minor sanity checks - any custom checks should've been carried
out during wave header preparation etc.
*/
VALIDATE_MMSYS_PARAMETER( Header->lpData != NULL );
VALIDATE_MMSYS_PARAMETER( Header->dwBufferLength > 0 );
VALIDATE_MMSYS_PARAMETER( Header->dwFlags & WHDR_PREPARED );
VALIDATE_MMSYS_PARAMETER( ! Header->dwFlags & WHDR_INQUEUE );
/* Clear the "done" flag for the buffer */
Header->dwFlags &= ~WHDR_DONE;
Result = WaveHeaderOperation(FunctionTable->SubmitWaveHeader,
SoundDeviceInstance,
Header);
if ( ! MMSUCCESS(Result) )
{
return Result;
}
/* Set the "in queue" flag if everything was OK */
Header->dwFlags |= WHDR_INQUEUE;
return MMSYSERR_NOERROR;
}

View file

@ -15,8 +15,8 @@
#include <mmsystem.h>
#include <mmddk.h>
#include <ntddsnd.h>
#include <reactos/sndnames.h>
#include <reactos/sndtypes.h>
#include <sndnames.h>
#include <sndtypes.h>
#include <mmebuddy.h>
#include <mment4.h>

View file

@ -13,8 +13,8 @@
#include <mmddk.h>
#include <ntddsnd.h>
#include <reactos/sndnames.h>
#include <reactos/sndtypes.h>
#include <sndnames.h>
#include <sndtypes.h>
#include <mmebuddy.h>
#include <mment4.h>