mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
* pcm_play_data * pcm_play_stop * pcm_play_stop_int * pcm_is_playing * pcm_set_frequency * pcm_get_frequency * pcm_apply_settings Now, the only user of these functions are the mixer and recording layers that provide a higher-level API to plugins and the main [playback] application. Outside of the PCM core, pcm_apply_settings() was only used immediately following a call to mixer_set_frequency(), so the latter function now always calls the former. Change-Id: I61c3144dc156b9de9b7963160b525c6d10c6ad4b
28 lines
1.2 KiB
Lua
28 lines
1.2 KiB
Lua
--[[ Lua RB pcm Operations
|
|
/***************************************************************************
|
|
* __________ __ ___.
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
* \/ \/ \/ \/ \/
|
|
* $Id$
|
|
*
|
|
* Copyright (C) 2018 William Wilgus
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
* KIND, either express or implied.
|
|
*
|
|
****************************************************************************/
|
|
]]
|
|
|
|
-- [[ conversion to old style pcm_ functions ]]
|
|
if not rb.pcm then rb.splash(rb.HZ, "No Support!") return nil end
|
|
|
|
rb.pcm_play_lock = function() rb.pcm("play_lock") end
|
|
rb.pcm_play_unlock = function() rb.pcm("play_unlock") end
|