Resolved bug in port-audio implementation; Working Audio WIN32
This commit is contained in:
@@ -44,7 +44,7 @@ exports.join = async function join({interaction= undefined, guildID= undefined,
|
|||||||
log.VERBOSE("Audio Instance: ", audioInstance);
|
log.VERBOSE("Audio Instance: ", audioInstance);
|
||||||
|
|
||||||
audioInstance.on('data', buffer => {
|
audioInstance.on('data', buffer => {
|
||||||
//buffer = Buffer.from(buffer);
|
buffer = Buffer.from(buffer);
|
||||||
log.VERBOSE("Audio buffer: ", buffer);
|
log.VERBOSE("Audio buffer: ", buffer);
|
||||||
const encodedBuffer = encoder.encode(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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user