add sample scripts
This commit is contained in:
parent
82d620b1d9
commit
55b844ed6a
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…
x
Reference in New Issue
Block a user