Struct NativeAudio.LoadOptions
An option for Load(AudioClip, NativeAudio.LoadOptions).
Because it is a struct
, start making it from defaultOptions
to get a good default values.
Namespace: E7.Native
Assembly: E7.NativeAudio.dll
Syntax
public struct LoadOptions
Fields
defaultOptions
A good starting values to create custom options. A struct
cannot have default value on new
.
Declaration
public static readonly NativeAudio.LoadOptions defaultOptions
Field Value
Type | Description |
---|---|
NativeAudio.LoadOptions |
resamplingQuality
The quality which libsamplerate
will use to resample your audio to match the device's native rate.
Default to SINC_FASTEST on defaultOptions
Declaration
public NativeAudio.LoadOptions.ResamplingQuality resamplingQuality
Field Value
Type | Description |
---|---|
NativeAudio.LoadOptions.ResamplingQuality |
Remarks
Two top quality setting has been removed from the source code since the sinc wave constant coefficients are needed and could potentially make Native Audio sized at 0.79MB (For medium quality) or 9.2MB (For best quality)
If you really need it, you can uncomment and then go modify back the source and recompile with the missing coefficients.