Hide audio source type selector — type is determined by add button context
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,18 +21,8 @@
|
||||
<input type="text" id="audio-source-name" data-i18n-placeholder="audio_source.name.placeholder" placeholder="System Audio" required>
|
||||
</div>
|
||||
|
||||
<!-- Type -->
|
||||
<div class="form-group">
|
||||
<div class="label-row">
|
||||
<label for="audio-source-type" data-i18n="audio_source.type">Type:</label>
|
||||
<button type="button" class="hint-toggle" onclick="toggleHint(this)" title="?" data-i18n-aria-label="aria.hint">?</button>
|
||||
</div>
|
||||
<small class="input-hint" style="display:none" data-i18n="audio_source.type.hint">Multichannel captures all channels from a physical audio device. Mono extracts a single channel from a multichannel source.</small>
|
||||
<select id="audio-source-type" onchange="onAudioSourceTypeChange()">
|
||||
<option value="multichannel" data-i18n="audio_source.type.multichannel">Multichannel</option>
|
||||
<option value="mono" data-i18n="audio_source.type.mono">Mono</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- Type (hidden — determined by which add button was clicked) -->
|
||||
<input type="hidden" id="audio-source-type" value="multichannel">
|
||||
|
||||
<!-- Multichannel fields -->
|
||||
<div id="audio-source-multichannel-section">
|
||||
|
||||
Reference in New Issue
Block a user