Fix naming bug in audioController
This commit is contained in:
@@ -30,7 +30,7 @@ export function confirmAudioDevice({deviceName = undefined, deviceId = undefined
|
|||||||
*/
|
*/
|
||||||
export function getAudioDevices(){
|
export function getAudioDevices(){
|
||||||
// Exec output contains both stderr and stdout outputs
|
// Exec output contains both stderr and stdout outputs
|
||||||
const deviceList = executeConsoleCommand("arecord -L");
|
const deviceList = executeAsyncConsoleCommand("arecord -L");
|
||||||
log.DEBUG("Device list: ", deviceList);
|
log.DEBUG("Device list: ", deviceList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const log = new ModuleDebugBuilder("bot", "executeConsoleCommand");
|
|||||||
const execCommand = promisify(exec);
|
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
|
// Check to see if the command is a real command
|
||||||
// TODO needs to be improved
|
// TODO needs to be improved
|
||||||
const acceptableCommands = [ "arecord -L" ];
|
const acceptableCommands = [ "arecord -L" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user