Add Logging singleton to manually control Mediabunny's console output (fixes #415)

This commit is contained in:
Vanilagy
2026-06-18 19:32:18 +02:00
parent 92a384f418
commit cdc2ef63dd
28 changed files with 324 additions and 65 deletions
+2 -1
View File
@@ -17,6 +17,7 @@ import { WavOutputFormat } from '../output-format';
import { assert, assertNever, isIso88591Compatible, keyValueIterator } from '../misc';
import { MetadataTags, metadataTagsAreEmpty } from '../metadata';
import { Id3V2Writer } from '../id3';
import { Logging } from '../logging';
export class WaveMuxer extends Muxer {
private format: WavOutputFormat;
@@ -206,7 +207,7 @@ export class WaveMuxer extends Muxer {
const writeInfoTag = (tag: string, value: string) => {
if (!isIso88591Compatible(value)) {
// No Unicode supported here
console.warn(`Didn't write tag '${tag}' because '${value}' is not ISO 8859-1-compatible.`);
Logging._warn(`Didn't write tag '${tag}' because '${value}' is not ISO 8859-1-compatible.`);
return;
}