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

var hardware : bool

Description

Use hardware voice/decoder if available

// Use hardware voice/decoder if available when importing
// Audio.

class UseHardwareDecoder extends AssetPostprocessor {
function OnPreprocessAudio () {
var audioImporter : AudioImporter = assetImporter;
audioImporter.hardware = true;
}
}