AudRecordLib
|
Declares the bits required for communicating with the sampling thread. More...
Go to the source code of this file.
Classes | |
struct | CreateAudioClientParams |
struct | ReleaseAudioClientParams |
Enumerations | |
enum | ThreadMessages { FIRST_THREAD_MESSAGE = WM_USER, MSG_CREATE_AUDIO_CLIENT = FIRST_THREAD_MESSAGE, MSG_RELEASE_AUDIO_CLIENT, LAST_THREAD_MESSAGE } |
Functions | |
void | ActOnMessage (const MSG &msg) |
BOOL | SendThreadMessage (DWORD threadId, UINT msg, PVOID pParam) |
Declares the bits required for communicating with the sampling thread.
enum ThreadMessages |
Messages accepted by the sampling thread start at WM_USER Includes start and end sentinels
void ActOnMessage | ( | const MSG & | msg | ) |
Responds to a thread message by calling the appropriate callback and then signals the event to enable the calling thread to continue.
If the message is a standard Windows message, Translate/DispatchMessage are called instead and no event is set
msg | The message to act on |
BOOL SendThreadMessage | ( | DWORD | threadId, |
UINT | msg, | ||
PVOID | pParam | ||
) |
A blocking equivalent of PostThreadMessage
Creates a Windows event, posts the message to thread using PostThreadMessage and waits for the event to be signalled by the processing thread. If the message is out of the range delimited by the ThreadMessage enumeration the function fails trivially.
threadId | Thread to send the message to |
msg | Message id to send |
pParam | Additional message data |