Fix naming bug in audioController

This commit is contained in:
Logan Cusano
2023-03-26 00:47:39 -04:00
parent 7c9be47b64
commit 184458608d
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ export function confirmAudioDevice({deviceName = undefined, deviceId = undefined
*/
export function getAudioDevices(){
// Exec output contains both stderr and stdout outputs
const deviceList = executeConsoleCommand("arecord -L");
const deviceList = executeAsyncConsoleCommand("arecord -L");
log.DEBUG("Device list: ", deviceList);
}

View File

@@ -8,7 +8,7 @@ const log = new ModuleDebugBuilder("bot", "executeConsoleCommand");
const execCommand = promisify(exec);
export async function executeAsyncConsoleCommand(consoleCommand) {
export default async function executeAsyncConsoleCommand(consoleCommand) {
// Check to see if the command is a real command
// TODO needs to be improved
const acceptableCommands = [ "arecord -L" ];