//********************************** Banshee Engine (www.banshee3d.com) **************************************************//
//************** Copyright (c) 2016-2019 Marko Pintera (marko.pintera@gmail.com). All rights reserved. *******************//
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using bs;
namespace bs.Editor
{
/** @addtogroup Importer
* @{
*/
/// Contains import options you may use to control how an audio clip is imported.
[ShowInInspector]
public partial class AudioClipImportOptions : ImportOptions
{
private AudioClipImportOptions(bool __dummy0) { }
/// Creates a new import options object that allows you to customize how are audio clips imported.
public AudioClipImportOptions()
{
Internal_create(this);
}
/// Audio format to import the audio clip as.
[ShowInInspector]
[NativeWrapper]
public AudioFormat Format
{
get { return Internal_getformat(mCachedPtr); }
set { Internal_setformat(mCachedPtr, value); }
}
/// Determines how is audio data loaded into memory.
[ShowInInspector]
[NativeWrapper]
public AudioReadMode ReadMode
{
get { return Internal_getreadMode(mCachedPtr); }
set { Internal_setreadMode(mCachedPtr, value); }
}
///
/// Determines should the clip be played as spatial (3D) audio or as normal audio. 3D clips will be converted to mono on
/// import.
///
[ShowInInspector]
[NativeWrapper]
public bool Is3D
{
get { return Internal_getis3D(mCachedPtr); }
set { Internal_setis3D(mCachedPtr, value); }
}
/// Size of a single sample in bits. The clip will be converted to this bit depth on import.
[ShowInInspector]
[NativeWrapper]
public int BitDepth
{
get { return Internal_getbitDepth(mCachedPtr); }
set { Internal_setbitDepth(mCachedPtr, value); }
}
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern AudioFormat Internal_getformat(IntPtr thisPtr);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_setformat(IntPtr thisPtr, AudioFormat value);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern AudioReadMode Internal_getreadMode(IntPtr thisPtr);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_setreadMode(IntPtr thisPtr, AudioReadMode value);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool Internal_getis3D(IntPtr thisPtr);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_setis3D(IntPtr thisPtr, bool value);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern int Internal_getbitDepth(IntPtr thisPtr);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_setbitDepth(IntPtr thisPtr, int value);
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_create(AudioClipImportOptions managedInstance);
}
/** @} */
}