This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

ovrMicrophone

ovr_Microphone_GetOutputBufferMaxSize

Returns the size of the internal ringbuffer used by the microhone in elements. This size is the maximumnumber of elements that can ever be returned by ovr_Microphone_GetPCM()*.

This function can be safely called from any thread.

Parameter: const ovrMicrophoneHandle obj

Return Type: size_t

ovr_Microphone_GetPCM

Gets all available samples of microphone data andcopies it into outputBuffer. The microphone will generate data at roughlythe rate of 480 samples per 10ms. The data format is 16 bit fixed point 48khz mono.

This function can be safely called from any thread.

Parameter: const ovrMicrophoneHandle obj

Parameter: int16_t * outputBuffer

Parameter: size_t outputBufferNumElements

Return Type: size_t

ovr_Microphone_GetPCMFloat

Gets all available samples of microphone data andcopies it into outputBuffer. The microphone will generate data at roughlythe rate of 480 samples per 10ms. The data format is 32 bit floating point 48khz mono.

This function can be safely called from any thread.

Parameter: const ovrMicrophoneHandle obj

Parameter: float * outputBuffer

Parameter: size_t outputBufferNumElements

Return Type: size_t

ovr_Microphone_ReadData

DEPRECATED: Use ovr_Microphone_GetPCMFloat() instead.

Gets all available samples of microphone data andcopies it into outputBuffer. The microphone will generate data at roughlythe rate of 480 samples per 10ms. The data format is 32 bit floating point 48khz mono.

This function can be safely called from any thread.

Parameter: const ovrMicrophoneHandle obj

Parameter: float * outputBuffer

Parameter: size_t outputBufferSize

Return Type: size_t

ovr_Microphone_SetAcceptableRecordingDelayHint

Indicates that the caller is fine with a certain delay in thedelivery of recorded audio frames. Setting this to a low value willreduce the latency at the cost of efficiency. Note that this is onlya hint; the actual implementation may ignore it.

Parameter: const ovrMicrophoneHandle obj

Parameter: size_t delayMs

Return Type: void

ovr_Microphone_SetAudioDataAvailableCallback

Register a callback that will be called whenever audio data is available for the microphone.

Parameter: const ovrMicrophoneHandle obj

Parameter: MicrophoneDataAvailableCallback cb

Parameter: void * userData

Return Type: void

ovr_Microphone_Start

Starts microphone recording. After this is called pcm data can be extracted usingovr_Microphone_GetPCM().

This function can be safely called from any thread.

Parameter: const ovrMicrophoneHandle obj

Return Type: void

ovr_Microphone_Stop

Stops microphone recording.

This function can be safely called from any thread.

Parameter: const ovrMicrophoneHandle obj

Return Type: void