AudioImporter
.hardware
Manual
Reference
Scripting
Scripting
>
Editor Classes
>
AudioImporter
AudioImporter
.hardware
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
AudioImporter
All Members
Variables
compressionBitrate
forceToMono
format
hardware
loopable
threeD
Inherited Variables
assetPath
hideFlags
name
Inherited Functions
GetInstanceID
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
GetAtPath
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
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;
}
}