Description | Hierarchy | Fields | Methods | Properties |
type unaWaveInDevice = class(unaWaveDevice)
Use this class to record live audio. deviceID parameter used to construct instances of this class can be from 0 to unaWaveInDevice.getDeviceCount() - 1, or you can use WAVE_MAPPER value instead.
After opening the device check periodically output stream by calling read() method, or use onDataAvailable() event to receive new data chunks.
constructor create(deviceID: uint = WAVE_MAPPER; mapped: bool = false; direct: bool = true; overNum: unsigned = 0); |
|
function formatChoose(var format: pWAVEFORMATEX; const title: wString = ''; style: unsigned = ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT; enumFlag: unsigned = ACM_FORMATENUMF_HARDWARE + ACM_FORMATENUMF_INPUT; enumFormat: pWAVEFORMATEX = nil): MMRESULT; |
|
class function getCaps(deviceID: uint; var caps: WAVEINCAPSW): bool; overload; |
|
class function getDeviceCount(): unsigned; |
|
class function getErrorText(errorCode: MMRESULT): string; |
|
function getInCaps(): pWAVEINCAPSW; |
|
function addHeader(header: unaWaveHeader): MMRESULT; override; |
|
function afterOpen(): MMRESULT; override; |
|
function doClose(timeout: tTimeout = 1): MMRESULT; override; |
|
function doGetErrorText(errorCode: MMRESULT): string; override; |
|
function doGetPosition(): int64; override; |
|
function doOpen(flags: uint): MMRESULT; override; |
|
function formatChooseDef2(var format: pWAVEFORMATEX): MMRESULT; override; |
|
function getMasterIsSrc2(): bool; override; |
|
function onHeaderDone(header: unaWaveHeader; wakeUpByHeaderDone: bool): bool; override; |
|
function prepareHeader(header: pointer): MMRESULT; override; |
|
function unprepareHeader(header: pointer): MMRESULT; override; |
|
procedure startIn(); override; |
|
procedure startOut(); override; |
property handle; |
constructor create(deviceID: uint = WAVE_MAPPER; mapped: bool = false; direct: bool = true; overNum: unsigned = 0); |
|
Creates wave recording device. |
function formatChoose(var format: pWAVEFORMATEX; const title: wString = ''; style: unsigned = ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT; enumFlag: unsigned = ACM_FORMATENUMF_HARDWARE + ACM_FORMATENUMF_INPUT; enumFormat: pWAVEFORMATEX = nil): MMRESULT; |
|
Displays format selection dialog. |
class function getCaps(deviceID: uint; var caps: WAVEINCAPSW): bool; overload; |
|
MME only. Returnsdevice caps. |
class function getDeviceCount(): unsigned; |
|
MME only. Returnsrecording device count. |
class function getErrorText(errorCode: MMRESULT): string; |
|
MME only. Returnsdevice error text. |
function getInCaps(): pWAVEINCAPSW; |
|
MME only. Returnsdevice caps. |
function addHeader(header: unaWaveHeader): MMRESULT; override; |
|
function afterOpen(): MMRESULT; override; |
|
function doClose(timeout: tTimeout = 1): MMRESULT; override; |
|
function doGetErrorText(errorCode: MMRESULT): string; override; |
|
function doGetPosition(): int64; override; |
|
function doOpen(flags: uint): MMRESULT; override; |
|
function formatChooseDef2(var format: pWAVEFORMATEX): MMRESULT; override; |
|
Displays a format choose dialog. Reallocates (if necessary) given format. |
function getMasterIsSrc2(): bool; override; |
|
Returns false. |
function onHeaderDone(header: unaWaveHeader; wakeUpByHeaderDone: bool): bool; override; |
|
function prepareHeader(header: pointer): MMRESULT; override; |
|
function unprepareHeader(header: pointer): MMRESULT; override; |
|
procedure startIn(); override; |
|
procedure startOut(); override; |
|
property handle; |
|
WinAPI MME handle |
(c) 2012 Lake of Soft