VoiceSynchronizableUnityMicrophoneStart Method
Start Recording with device.
Namespace: AlterunaAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public AudioClip Start(
string deviceName,
bool loop,
int lengthSec,
int frequency
)
- 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.
AudioClipThe function returns null if the recording fails to start.
VoiceSynchronizableIAudioInputStart(String, Boolean, Int32, Int32)