add sample scripts

This commit is contained in:
ZappoMan 2014-03-23 11:27:06 -07:00
parent 82d620b1d9
commit 55b844ed6a
2 changed files with 40 additions and 0 deletions

View 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();

View 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();