AudioImporter.forceToMono Manual     Reference     Scripting  
Scripting > Editor Classes > AudioImporter
AudioImporter.forceToMono

var forceToMono : bool

Description

Force this clip to mono?

// Import files containin "mono" in their name as mono.

class DetectMono extends AssetPostprocessor {
function OnPreprocessAudio () {
if (assetPath.Contains("mono")) {
var audioImporter : AudioImporter = assetImporter;
audioImporter.forceToMono = true;
}
}
}