FreeRDP
audin_winmm.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Windows.h>
#include <MMSystem.h>
#include <winpr/crt.h>
#include <winpr/cmdline.h>
#include <freerdp/addin.h>
#include <freerdp/client/audin.h>
#include "audin_main.h"

Macros

#define freerdp_audin_client_subsystem_entry   FREERDP_API freerdp_audin_client_subsystem_entry
 

Functions

static void CALLBACK waveInProc (HWAVEIN hWaveIn, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2)
 
static DWORD WINAPI audin_winmm_thread_func (LPVOID arg)
 
static UINT audin_winmm_free (IAudinDevice *device)
 
static UINT audin_winmm_close (IAudinDevice *device)
 
static UINT audin_winmm_set_format (IAudinDevice *device, const AUDIO_FORMAT *format, UINT32 FramesPerPacket)
 
static BOOL audin_winmm_format_supported (IAudinDevice *device, const AUDIO_FORMAT *format)
 
static UINT audin_winmm_open (IAudinDevice *device, AudinReceive receive, void *user_data)
 
static UINT audin_winmm_parse_addin_args (AudinWinmmDevice *device, ADDIN_ARGV *args)
 
UINT freerdp_audin_client_subsystem_entry (PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEntryPoints)
 

Variables

static COMMAND_LINE_ARGUMENT_A audin_winmm_args []
 

Macro Definition Documentation

#define freerdp_audin_client_subsystem_entry   FREERDP_API freerdp_audin_client_subsystem_entry

Function Documentation

static UINT audin_winmm_close ( IAudinDevice *  device)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL audin_winmm_format_supported ( IAudinDevice *  device,
const AUDIO_FORMAT format 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_winmm_free ( IAudinDevice *  device)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the caller graph for this function:

static UINT audin_winmm_open ( IAudinDevice *  device,
AudinReceive  receive,
void user_data 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_winmm_parse_addin_args ( AudinWinmmDevice *  device,
ADDIN_ARGV *  args 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_winmm_set_format ( IAudinDevice *  device,
const AUDIO_FORMAT format,
UINT32  FramesPerPacket 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the caller graph for this function:

static DWORD WINAPI audin_winmm_thread_func ( LPVOID  arg)
static

Here is the call graph for this function:

Here is the caller graph for this function:

UINT freerdp_audin_client_subsystem_entry ( PFREERDP_AUDIN_DEVICE_ENTRY_POINTS  pEntryPoints)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

static void CALLBACK waveInProc ( HWAVEIN  hWaveIn,
UINT  uMsg,
DWORD_PTR  dwInstance,
DWORD_PTR  dwParam1,
DWORD_PTR  dwParam2 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

COMMAND_LINE_ARGUMENT_A audin_winmm_args[]
static
Initial value:
=
{
{ "dev", COMMAND_LINE_VALUE_REQUIRED, "<device>", NULL, NULL, -1, NULL, "audio device name" },
{ NULL, 0, NULL, NULL, NULL, -1, NULL, NULL }
}
#define COMMAND_LINE_VALUE_REQUIRED
Definition: winpr/include/winpr/cmdline.h:34
if availableBytes return NULL
Definition: TPCircularBuffer.h:104