Namespace E7.Native
Classes
NativeAudio
The most important class, contains static
methods that are used to command the native side.
NativeAudioAnalyzer
The game object with this component is able to test native audio over several frames.
NativeAudioAnalyzerResult
Result from running Analyze().
NativeAudioPointer
A representation of loaded audio memory at the native side.
When you Load(AudioClip) it is copying audio memory to native side. Each memory area of loaded audio is given an ID. This "pointer" is not really a "memory address pointer" like in C++, but just the mentioned ID. Just a simple integer.
Please do not create an instance of this class on your own. You can only get and keep from calling Load(AudioClip)
Structs
DeviceAudioInformation
Several properties about the device asked from the native side that might help you. Returned from GetDeviceAudioInformation()
The content of this struct
changes completely depending on active build platform.
You will want to use a preprocessor directive wrapping it.
NativeAudio.InitializationOptions
An option for Initialize(NativeAudio.InitializationOptions).
Because it is a struct
, start making it from defaultOptions to get a good default values.
This class is currently only contains options for Android. iOS options are fixed.
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.
NativeSource
This is a reference to one of all native sources you obtained at Initialize(). Parallels UnityEngine.AudioSource of Unity except they are at native side, you play an audio using it.
Main way to get this is by GetNativeSource(Int32), GetNativeSourceAuto(), or GetNativeSourceAuto(INativeSourceSelector)
NativeSource.PlayOptions
Used with Play(NativeAudioPointer, NativeSource.PlayOptions) to customize your play. Start creating it from defaultOptions.
Interfaces
INativeSourceSelector
An interface
to use with GetNativeSourceAuto(INativeSourceSelector)
You can implement your own logic that derives an index depending on some internal state.
Enums
NativeAudio.LoadOptions.ResamplingQuality
Determines what resampling quality for Secret Rabbit Code to use.