Compare commits

..

No commits in common. "25b896c41dc7143a5d2ca3f2fdac74bf679bce71" and "7fcd9113c3d22e56c3760940debd66a66e0e977a" have entirely different histories.

4 changed files with 5 additions and 16 deletions

View file

@ -4,7 +4,6 @@ import (
"bufio" "bufio"
"fmt" "fmt"
"os/exec" "os/exec"
"sort"
"strconv" "strconv"
"strings" "strings"
) )
@ -183,10 +182,6 @@ func ParseAmixerContent(cardId string) ([]*CardControl, error) {
} }
err = cmd.Wait() err = cmd.Wait()
// Sort mixers by NumID
sort.Sort(ByNumID(ret))
return ret, err return ret, err
} }
@ -207,9 +202,3 @@ func (cc *CardControl) CsetAmixer(cardId string, values ...string) error {
return cmd.Wait() return cmd.Wait()
} }
type ByNumID []*CardControl
func (a ByNumID) Len() int { return len(a) }
func (a ByNumID) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a ByNumID) Less(i, j int) bool { return a[i].NumID < a[j].NumID }

View file

@ -20,7 +20,7 @@
{#if (showInactives && $inputsList.length === 0) || (!showInactives && $activeInputs.length === 0)} {#if (showInactives && $inputsList.length === 0) || (!showInactives && $activeInputs.length === 0)}
<li class="list-group-item py-3"> <li class="list-group-item py-3">
<span class="text-muted"> <span class="text-muted">
No active source. Aucune source active.
</span> </span>
</li> </li>
{/if} {/if}

View file

@ -27,7 +27,7 @@
{#if $activeSources.length === 0 && $activeInputs.length === 0} {#if $activeSources.length === 0 && $activeInputs.length === 0}
<div class="text-muted text-center mt-1 mb-1"> <div class="text-muted text-center mt-1 mb-1">
No active audio source currently. Aucune source active pour l'instant.
</div> </div>
{:else} {:else}
<marquee> <marquee>
@ -38,7 +38,7 @@
{#if source.currentTitle} {#if source.currentTitle}
<strong>{source.currentTitle}</strong> <span class="text-muted">@ {source.name}</span> <strong>{source.currentTitle}</strong> <span class="text-muted">@ {source.name}</span>
{:else} {:else}
{source.name} enabled {source.name} activée
{/if} {/if}
</div> </div>
</div> </div>
@ -55,7 +55,7 @@
{/each} {/each}
<span class="text-muted">@ {input.name}</span> <span class="text-muted">@ {input.name}</span>
{:else} {:else}
{input.name} enabled {input.name} activée
{/if} {/if}
</div> </div>
</div> </div>

View file

@ -52,7 +52,7 @@
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<div> <div>
<i class="bi bi-speaker"></i> <i class="bi bi-speaker"></i>
Inputs Sources
</div> </div>
<button <button
class="btn btn-sm" class="btn btn-sm"