AudioSettings
.driverCaps
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
AudioSettings
AudioSettings
.driverCaps
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
AudioSettings
All Members
Class Variables
driverCaps
outputSampleRate
speakerMode
static
var
driverCaps :
AudioSpeakerMode
Description
Returns the speaker mode capability of the current audio driver.
(Read Only)
JavaScripts
JavaScript
C#
Boo
// Set the speaker mode to that of the system settings.
AudioSettings.speakerMode
=
AudioSettings.driverCaps
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
AudioSettings.speakerMode
=
AudioSettings.driverCaps
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
AudioSettings.speakerMode
=
AudioSettings.driverCaps