commit for debugging/testing purposes

This commit is contained in:
Daniel Sommer 2022-05-02 16:04:33 +02:00
parent ac1fca8368
commit 1ce772d855
4 changed files with 4 additions and 7 deletions

View file

@ -38,14 +38,14 @@ class Api {
if (global.audioserver !== undefined) {
await global.audioserver.destroy();
}
global.audioserver = new AudioServer('/home/velvettear/mounts/kingston/public/test.pcm');
global.audioserver = new AudioServer('/home/velvettear/mounts/kingston/public/suffer.raw');
});
this.#registerEndpoint(constants.API_RESUME, constants.REQUEST_METHOD_POST, async () => {
if (global.audioserver === undefined) {
return;
}
await global.audioserver.destroy();
global.audioserver = new AudioServer('/home/velvettear/mounts/kingston/public/test.pcm', global.audioserver.progress);
global.audioserver = new AudioServer('/home/velvettear/mounts/kingston/public/suffer.raw', global.audioserver.progress);
});
this.#registerEndpoint(constants.API_PAUSE, constants.REQUEST_METHOD_POST, async () => {
if (global.audioserver === undefined) {

View file

@ -103,9 +103,6 @@ class AudioServer {
client.audiosocket.on('error', (error) => {
logger.error(client.getTag() + ' encountered an error: ' + error);
});
client.audiosocket.on('end', () => {
logger.debug(client.getTag() + ' ended audio socket');
});
client.audiosocket.on('close', (hadError) => {
let msg = client.getTag() + ' closed audio socket';
if (hadError === true) {

View file

@ -73,7 +73,7 @@ class Client {
#handleEventHeartbeatTimeout() {
logger.warn(this.getTag() + ' heartbeat timed out');
this.destroy();
// this.destroy();
}
#handleEventNetworkStatistics(data) {

View file

@ -28,6 +28,6 @@
},
"audio": {
"nodelay": false,
"threshold": 100
"threshold": 1
}
}