winealsa.drv: ALSA_PeekRingMessage() is not used anymore so remove it.
This commit is contained in:
parent
4617d7753d
commit
a8187db2fb
|
@ -213,31 +213,6 @@ int ALSA_RetrieveRingMessage(ALSA_MSG_RING* omr, enum win_wm_message *msg,
|
|||
return 1;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
* ALSA_PeekRingMessage
|
||||
*
|
||||
* Peek at a message from the ring but do not remove it.
|
||||
* Should be called by the playback/record thread.
|
||||
*/
|
||||
int ALSA_PeekRingMessage(ALSA_MSG_RING* omr,
|
||||
enum win_wm_message *msg,
|
||||
DWORD_PTR *param, HANDLE *hEvent)
|
||||
{
|
||||
EnterCriticalSection(&omr->msg_crst);
|
||||
|
||||
if (omr->msg_toget == omr->msg_tosave) /* buffer empty ? */
|
||||
{
|
||||
LeaveCriticalSection(&omr->msg_crst);
|
||||
return 0;
|
||||
}
|
||||
|
||||
*msg = omr->messages[omr->msg_toget].msg;
|
||||
*param = omr->messages[omr->msg_toget].param;
|
||||
*hEvent = omr->messages[omr->msg_toget].hEvent;
|
||||
LeaveCriticalSection(&omr->msg_crst);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*======================================================================*
|
||||
* Utility functions *
|
||||
*======================================================================*/
|
||||
|
|
|
@ -179,7 +179,6 @@ void ALSA_ResetRingMessage(ALSA_MSG_RING* omr);
|
|||
void ALSA_WaitRingMessage(ALSA_MSG_RING* omr, DWORD sleep);
|
||||
int ALSA_AddRingMessage(ALSA_MSG_RING* omr, enum win_wm_message msg, DWORD_PTR param, BOOL wait);
|
||||
int ALSA_RetrieveRingMessage(ALSA_MSG_RING* omr, enum win_wm_message *msg, DWORD_PTR *param, HANDLE *hEvent);
|
||||
int ALSA_PeekRingMessage(ALSA_MSG_RING* omr, enum win_wm_message *msg, DWORD_PTR *param, HANDLE *hEvent);
|
||||
int ALSA_CheckSetVolume(snd_hctl_t *hctl, int *out_left, int *out_right, int *out_min, int *out_max, int *out_step, int *new_left, int *new_right);
|
||||
|
||||
const char * ALSA_getCmdString(enum win_wm_message msg);
|
||||
|
|
Loading…
Reference in New Issue