Set stream name and program info for test tone broadcasts, update test tone WAV files

This commit is contained in:
2026-04-09 13:47:48 +02:00
parent 85532b034c
commit e35b8aa2f9
4 changed files with 6 additions and 0 deletions

View File

@@ -1521,10 +1521,16 @@ if start_stream:
cfg_cls, lang = lang_cfgs[i % len(lang_cfgs)]
if demo_content == "1 kHz test tone":
source_file = f'../testdata/test_tone_1k_{int(q["rate"]/1000)}kHz_mono.wav'
stream_name = 'test tone'
stream_program_info = '1khz'
else:
source_file = f'../testdata/wave_particle_5min_{lang}_{int(q["rate"]/1000)}kHz_mono.wav'
stream_name = None
stream_program_info = None
bigs1.append(cfg_cls(
code=(stream_passwort.strip() or None),
name=stream_name,
program_info=stream_program_info,
audio_source=f'file:{source_file}',
iso_que_len=32,
sampling_frequency=q['rate'],

Binary file not shown.

Binary file not shown.

Binary file not shown.