Skip to content

fernantastic/unity-editor-sound-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Unity Editor Microphone Recorder

This is a snippet for recording microphone audio in the Unity Editor, extracted from Doodle Studio 95!

No warranties, not sure it still works!

Requirements

SavWav https://gist.github.com/darktable/2317063

Usage

Usage (eg. inside the OnGUI function of Editor scripts):

if (GUI.Button) {
	if (!SoundRecorder.IsRecording()) {
		SetPlayhead(0);
		SetPlayback(true);
		SoundRecorder.StartRecording(totalFrameLength / (float)m_FramesPerSecond);
	} else {
		SoundRecorder.StopRecording();
	}
} 

About

A gist for recording microphone audio in the Unity Editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages