CRIWARE Unity Plugin Manual
Last Updated: 2024-07-12
|
Microphone for capturing sound More...
Inherits CriDisposable.
Classes | |
struct | Config |
A config structure for creating an AtomEx microphone More... | |
struct | DeviceInfo |
Microphone device information structure More... | |
class | Effect |
Microphone effect More... | |
Public Member Functions | |
override void | Dispose () |
Discards the microphone More... | |
void | Start () |
Starts microphone sound capturing More... | |
void | Stop () |
Stops the microphone sound capturing More... | |
int | GetNumChannels () |
Gets the number of microphone channels More... | |
int | GetSamplingRate () |
Gets the microphone sampling frequency More... | |
uint | GetNumBufferedSamples () |
Gets the number of samples of buffered data More... | |
uint | GetNumBufferredSamples () |
bool | IsAvailable () |
Gets the microphone availability More... | |
uint | ReadData (float[] bufferMono) |
Reads the microphone input data (monaural) More... | |
uint | ReadData (float[] bufferMono, uint numToRead) |
Reads the microphone input data (monaural) More... | |
uint | ReadData (float[] bufferL, float[] bufferR) |
Reads the microphone input data (stereo) More... | |
uint | ReadData (float[] bufferL, float[] bufferR, uint numToRead) |
Reads the microphone input data (stereo) More... | |
uint | ReadData (float[][] buffers) |
Reads the microphone input data (multi-channel) More... | |
uint | ReadData (float[][] buffers, uint numToRead) |
Reads the microphone input data (multi-channel) More... | |
void | SetOutputWriteStream (CriAudioWriteStream stream) |
Sets the light stream More... | |
CriAudioReadStream | GetOutputReadStream () |
Gets the read stream More... | |
Effect | AttachEffect (IntPtr afxInterface, float[] configParameters) |
Adds an effect More... | |
void | DetachEffect (Effect effect) |
Removes an effect More... | |
void | SetEffectParameter (Effect effect, int parameterIndex, float parameterValue) |
Sets effect parameters More... | |
float | GetEffectParameter (Effect effect, int parameterIndex) |
Gets effect parameters More... | |
void | SetEffectBypass (Effect effect, bool bypass) |
Effect Bypass setting More... | |
void | UpdateEffectParameters (Effect effect) |
Sets effect parameters More... | |
Static Public Member Functions | |
static void | InitializeModule () |
Initializes the CriAtomMic module More... | |
static void | FinalizeModule () |
Terminates the CriAtomMic module More... | |
static void | SetupOutputCategoryForMic_IOS (bool enable) |
[iOS] Sets the output category of the microphone input More... | |
static DeviceInfo[] | GetDevices () |
Gets the microphone device More... | |
static int | GetNumDevices () |
Gets the number of microphone devices More... | |
static DeviceInfo | GetDefaultDevice () |
Gets the default microphone device More... | |
static bool | IsFormatSupported (Config config) |
Gets the format support status More... | |
static CriAtomExMic | Create (Config?config=null) |
Creates an AtomEx microphone More... | |
Microphone for capturing sound
|
inlinestatic |
Initializes the CriAtomMic module
|
inlinestatic |
Terminates the CriAtomMic module
|
inlinestatic |
[iOS] Sets the output category of the microphone input
enable | Enable or disable the setting (True: enable, False: disable) |
|
inlinestatic |
Gets the microphone device
|
inlinestatic |
Gets the number of microphone devices
|
inlinestatic |
Gets the default microphone device
|
inlinestatic |
Gets the format support status
config | Config information |
|
inlinestatic |
Creates an AtomEx microphone
config | Config information |
|
inline |
Discards the microphone
|
inline |
Starts microphone sound capturing
|
inline |
Stops the microphone sound capturing
|
inline |
Gets the number of microphone channels
|
inline |
Gets the microphone sampling frequency
|
inline |
Gets the number of samples of buffered data
|
inline |
|
inline |
Gets the microphone availability
|
inline |
Reads the microphone input data (monaural)
bufferMono | Data buffer |
|
inline |
Reads the microphone input data (monaural)
bufferMono | Data buffer |
numToRead | The number of samples to read |
|
inline |
Reads the microphone input data (stereo)
bufferL | Data buffer (L channel) |
bufferR | Data buffer (R channel) |
|
inline |
Reads the microphone input data (stereo)
bufferL | Data buffer (L channel) |
bufferR | Data buffer (R channel) |
numToRead | The number of samples to read |
|
inline |
Reads the microphone input data (multi-channel)
buffers | Data buffer array |
|
inline |
Reads the microphone input data (multi-channel)
buffers | Data buffer array |
numToRead | The number of samples to read |
|
inline |
Sets the light stream
stream | Light stream |
|
inline |
Gets the read stream
|
inline |
Adds an effect
afxInterface | CriAfx interface |
configParameters | Config parameter array for creating CriAfx |
|
inline |
Removes an effect
effect | Microphone effect |
|
inline |
Sets effect parameters
effect | Microphone effect |
parameterIndex | Parameter index |
parameterValue | Parameter value |
|
inline |
Gets effect parameters
effect | Microphone effect |
parameterIndex | Parameter index |
|
inline |
Effect Bypass setting
effect | Microphone effect |
bypass | Bypass setting |
|
inline |
Sets effect parameters
effect | Microphone effect |