Skip to content

Commit

Permalink
feat: Improve audio source selection with restart notice and enhanced…
Browse files Browse the repository at this point in the history
… device matching

- Add restart requirement notice for audio source changes
- Implement more robust device selection with case-insensitive matching
- Update option selection to better reflect current audio capture source
  • Loading branch information
tphakala committed Feb 16, 2025
1 parent 9993444 commit 2c8989e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions views/settings/audioSettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

<div class="form-control relative">
<label class="label justify-start" for="audioSource">
<span class="label-text">Audio Source</span>
<span class="label-text">Audio Source (requires application restart to take effect)</span>
<span class="help-icon"
role="button"
aria-label="Show help for audio source"
Expand All @@ -133,10 +133,12 @@
<select x-model="audioCapture.source"
name="realtime.audio.source"
class="select select-bordered select-sm w-full">
<option value="">No sound card capture</option>
<option value="" :selected="!audioCapture.source">No sound card capture</option>
<template x-for="device in audioDevices" :key="device.Index">
<option :value="device.Name"
x-text="device.Name"></option>
:selected="audioCapture.source && (device.Name.toLowerCase().includes(audioCapture.source.toLowerCase()) || device.Name === audioCapture.source)"
x-text="device.Name">
</option>
</template>
</select>
<div x-show="showTooltip === 'audioSource'"
Expand Down

0 comments on commit 2c8989e

Please sign in to comment.