This commit is contained in:
booploops 2022-08-23 22:35:00 -07:00
commit 28c0f858a7
2 changed files with 14 additions and 1 deletions

View file

@ -367,7 +367,7 @@ const CiderAudio = {
if (!CiderAudio.ccON) {
CiderAudio.ccON = true;
let searchInt = setInterval(async function () {
if (CiderAudio.context != null && CiderAudio.audioNodes.gainNode != null) {
if (CiderAudio.context != null && CiderAudio.audioNodes.intelliGainComp != null) {
// var options = {
// mimeType: 'audio/webm; codecs=opus'
// };

View file

@ -50,6 +50,7 @@ const Events = {
});
app.showCollection(hist.data, app.getLz("term.history"));
}
// CTRL+F10
if (event.ctrlKey && event.keyCode == 121) {
try {
app.mk._services.mediaItemPlayback._currentPlayer.stop();
@ -57,7 +58,19 @@ const Events = {
try {
app.mk._services.mediaItemPlayback._currentPlayer.destroy();
} catch (e) {}
try {
let searchInt = setInterval(function () {
if (document.getElementById("apple-music-player")) {
//AudioOutputs.eqReady = true;
document.getElementById("apple-music-player").crossOrigin = "anonymous";
CiderAudio.source = CiderAudio.context.createMediaElementSource(document.getElementById("apple-music-player"));
CiderAudio.source.connect(CiderAudio.audioNodes.intelliGainComp);
clearInterval(searchInt);
}
}, 1000);
} catch (e) {}
}
// CTRL+F11
if (event.ctrlKey && event.keyCode == 122) {
try {
ipcRenderer.send("detachDT", "");