mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-15 17:46:47 +02:00
add sample scripts
This commit is contained in:
parent
82d620b1d9
commit
55b844ed6a
2 changed files with 40 additions and 0 deletions
22
examples/audioDeviceExample.js
Normal file
22
examples/audioDeviceExample.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
//
|
||||
// audioDeviceExample.js
|
||||
// hifi
|
||||
//
|
||||
// Created by Brad Hefta-Gaub on 3/22/14
|
||||
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
||||
//
|
||||
// This is an example script that demonstrates use of the Menu object
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
print("Audio Input Device: " + AudioDevice.getInputDevice());
|
||||
AudioDevice.setInputDevice("Shure Digital");
|
||||
print("Audio Input Device: " + AudioDevice.getInputDevice());
|
||||
|
||||
print("Audio Output Device: " + AudioDevice.getOutputDevice());
|
||||
AudioDevice.setOutputDevice("Shure Digital");
|
||||
print("Audio Output Device: " + AudioDevice.getOutputDevice());
|
||||
|
||||
Script.stop();
|
18
examples/settingsExample.js
Normal file
18
examples/settingsExample.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
//
|
||||
// settingsExample.js
|
||||
// hifi
|
||||
//
|
||||
// Created by Brad Hefta-Gaub on 3/22/14
|
||||
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
||||
//
|
||||
// This is an example script that demonstrates use of the Menu object
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
print("mySetting: " + Settings.getValue("mySetting"));
|
||||
Settings.setValue("mySetting", "spam");
|
||||
print("mySetting: " + Settings.getValue("mySetting"));
|
||||
|
||||
Script.stop();
|
Loading…
Reference in a new issue