Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
0fd9baaf71 | |||
24342f5062 | |||
2b50886ed0 |
@ -80,6 +80,10 @@ func (s *SPDIFSource) Enable() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// If no bitrate, asume soundcard is sleeping, try to wake up with a random bitrate
|
||||||
|
if sr == 0 {
|
||||||
|
sr = 44100
|
||||||
|
}
|
||||||
s.Bitrate = sr
|
s.Bitrate = sr
|
||||||
|
|
||||||
// If no bitrate, asume soundcard is sleeping, try to wake up with a random bitrate
|
// If no bitrate, asume soundcard is sleeping, try to wake up with a random bitrate
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
{#each $inputsList as input, iid}
|
{#each $inputsList as input, iid}
|
||||||
{#if showInactives || input.active}
|
{#if input.streams && (showInactives || input.active)}
|
||||||
{#each Object.keys(input.streams) as idstream}
|
{#each Object.keys(input.streams) as idstream}
|
||||||
{@const title = input.streams[idstream]}
|
{@const title = input.streams[idstream]}
|
||||||
<li class="list-group-item py-3 d-flex flex-column">
|
<li class="list-group-item py-3 d-flex flex-column">
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
let activating_source = null;
|
let activating_source = null;
|
||||||
async function clickSource(src) {
|
async function clickSource(src) {
|
||||||
activating_source = src.id;
|
activating_source = src.id;
|
||||||
|
try {
|
||||||
if (src.enabled) {
|
if (src.enabled) {
|
||||||
await src.deactivate();
|
await src.deactivate();
|
||||||
await sources.refresh();
|
await sources.refresh();
|
||||||
@ -11,6 +12,8 @@
|
|||||||
await src.activate();
|
await src.activate();
|
||||||
await sources.refresh();
|
await sources.refresh();
|
||||||
}
|
}
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
activating_source = null;
|
activating_source = null;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
<div class="d-inline-block me-3">
|
<div class="d-inline-block me-3">
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
<div>
|
<div>
|
||||||
{#if input.streams.length}
|
{#if input.streams && input.streams.length}
|
||||||
{#each Object.keys(input.streams) as idstream}
|
{#each Object.keys(input.streams) as idstream}
|
||||||
{@const title = input.streams[idstream]}
|
{@const title = input.streams[idstream]}
|
||||||
<strong>{title}</strong>
|
<strong>{title}</strong>
|
||||||
|
Loading…
Reference in New Issue
Block a user