Fix naming bug in audioController
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user