Resolved bug in port-audio implementation; Working Audio WIN32

This commit is contained in:
Logan Cusano
2023-05-03 22:37:19 -04:00
parent 7965a1161d
commit d1a8059cb9

View File

@@ -44,7 +44,7 @@ exports.join = async function join({interaction= undefined, guildID= undefined,
log.VERBOSE("Audio Instance: ", audioInstance);
audioInstance.on('data', buffer => {
//buffer = Buffer.from(buffer);
buffer = Buffer.from(buffer);
log.VERBOSE("Audio buffer: ", buffer);
const encodedBuffer = encoder.encode(buffer);
// TODO Add a function here to check the volume of either buffer and only play audio to discord when there is audio to be played