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

var hardware : boolean

Description

Use hardware voice/decoder if available

    // C#: Use hardware voice/decoder if available when importing Audio.
class UseHardwareDecoder extends AssetPostprocessor {
function OnPreprocessAudio () {
var audioImporter : AudioImporter = assetImporter;
audioImporter.hardware = true;
}
}