{#if value === null}
{:else if value.audio_file.is_stream}
{:else}
{#if audioDecoded} {#if value.multichannel} {#each [...Array(waveform.getDecodedData().numberOfChannels).keys()] as channelIdx}
{ const channelIdx = Number(ev.target.value); if(Boolean(ev.target.checked)){ splitter.connect(audioContext.destination, channelIdx, 0); } else { splitter.disconnect(channelIdx); } }} /> {value.labels[channelIdx]}
{/each} {:else} {#each [...Array(value.labels.length)].keys() as labelIdx}
{value.labels[labelIdx]}
{/each} {/if} {/if}
0:00
{#if mode === "edit" && trimDuration > 0}
{format_time(trimDuration)}
{/if}
0:00
{#if waveform}
{/if}
{/if}