Browse Source

Change underlying codecs... again

mane
Raindrops 6 months ago
parent
commit
dcfb6ada53
Signed by: Raindrops
GPG Key ID: EFBDC68435A574B7
  1. 11
      browser/test.html
  2. 2
      elac-decode
  3. 2
      elac-encode
  4. 2
      elac-play

11
browser/test.html

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EQMC Browser Test</title>
<script src="./eqmc.js"></script>
</head>
<body>
https://bucket.minteck.org/demo.eqmc
</body>
</html>

2
elac-decode

@ -73,7 +73,7 @@ for (let input of inputs) {
console.log("Decoding \"" + inputFile + ":/" + input._id + "\"...");
let outFile = os.tmpdir() + "/elac-play-temp/" + input._id + ".opus";
let outFile = os.tmpdir() + "/elac-play-temp/" + input._id + ".ogg";
if (input.lossless) {
outFile = os.tmpdir() + "/elac-play-temp/" + input._id + ".flac";
}

2
elac-encode

@ -98,7 +98,7 @@ for (let input of valid_inputs) {
let fileId = uuid();
let lossless = false;
let outFile = os.tmpdir() + "/elac-encode-temp/" + fileId + ".opus";
let outFile = os.tmpdir() + "/elac-encode-temp/" + fileId + ".ogg";
if (streams[0]['codec_name'].includes("pcm") || streams[0]['codec_name'].includes("flac") || streams[0]['codec_name'].includes("alac") || streams[0]['codec_name'].includes("dts")) {
lossless = true;

2
elac-play

@ -73,7 +73,7 @@ for (let input of inputs) {
console.log("Decoding \"" + inputFile + ":/" + input._id + "\"...");
let outFile = os.tmpdir() + "/elac-play-temp/" + input._id + ".opus";
let outFile = os.tmpdir() + "/elac-play-temp/" + input._id + ".ogg";
if (input.lossless) {
outFile = os.tmpdir() + "/elac-play-temp/" + input._id + ".flac";
}