VoiceSynchronizableUnityMicrophoneStart Method

Start Recording with device.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public AudioClip Start(
	string deviceName,
	bool loop,
	int lengthSec,
	int frequency
)

Parameters

deviceName  String
The name of the device.
loop  Boolean
Indicates whether the recording should continue recording if lengthSec is reached, and wrap around and record from the beginning of the AudioClip.
lengthSec  Int32
Is the length of the AudioClip produced by the recording.
frequency  Int32
The sample rate of the AudioClip produced by the recording.

Return Value

AudioClip

The function returns null if the recording fails to start.

Implements

VoiceSynchronizableIAudioInputStart(String, Boolean, Int32, Int32)

See Also