William Wilgus | 6e32e06 | 2019-07-25 10:17:40 -0500 | [diff] [blame^] | 1 | --[[ Lua RB sound Operations |
| 2 | /*************************************************************************** |
| 3 | * __________ __ ___. |
| 4 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 5 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 6 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 7 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 8 | * \/ \/ \/ \/ \/ |
| 9 | * $Id$ |
| 10 | * |
| 11 | * Copyright (C) 2019 William Wilgus |
| 12 | * |
| 13 | * This program is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU General Public License |
| 15 | * as published by the Free Software Foundation; either version 2 |
| 16 | * of the License, or (at your option) any later version. |
| 17 | * |
| 18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 19 | * KIND, either express or implied. |
| 20 | * |
| 21 | ****************************************************************************/ |
| 22 | ]] |
| 23 | |
| 24 | -- [[ conversion to old style sound_ functions ]] |
| 25 | if not rb.sound then rb.splash(rb.HZ, "No Support!") return nil end |
| 26 | |
| 27 | require "sound_defines" |
| 28 | |
| 29 | rb.sound_set = function(s, v) return rb.sound("set", s, v) end |
| 30 | rb.sound_current = function(s) return rb.sound("current", s) end |
| 31 | rb.sound_default = function(s) return rb.sound("default", s) end |
| 32 | rb.sound_min = function(s) return rb.sound("min", s) end |
| 33 | rb.sound_max = function(s) return rb.sound("max", s) end |
| 34 | rb.sound_unit = function(s) return rb.sound("unit", s) end |
| 35 | rb.sound_pitch = function(s) return rb.sound("pitch", s) end |
| 36 | rb.sound_val2phys = function(s, v) return rb.sound("val2phys", s, v) end |