AudRecordLib
Classes | Enumerations | Functions
messages.h File Reference

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)

Detailed Description

Declares the bits required for communicating with the sampling thread.


Enumeration Type Documentation

Messages accepted by the sampling thread start at WM_USER Includes start and end sentinels


Function Documentation

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

Parameters:
msgThe 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.

Parameters:
threadIdThread to send the message to
msgMessage id to send
pParamAdditional message data
Returns:
Nonzero if the message was processed, zero if it wasn't
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines