Skip to content

Commit

Permalink
Correct power output detail for the every channel used case
Browse files Browse the repository at this point in the history
  • Loading branch information
rtertiaer committed Jun 14, 2024
1 parent 8ebbb99 commit 902ec5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/manual/MAIN_CONTROLLER_SPECS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
|||
|Speaker Power | 55 WPC @ 4 Ω |
| | 32 WPC @ 8 Ω |
| | 23 RMS WPC power with all channels driven |
|||
|Speaker Impedance | 4 - 8 Ω |
|||
Expand Down
6 changes: 5 additions & 1 deletion web/src/components/StreamsModal/StreamsModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ const StreamsModal = ({
}) => {
const streams = useStatusStore((state) => state.status.streams);
const status = useStatusStore((state) => state.status);
const sources = useStatusStore((state) => state.sources);
const zones = useStatusStore((state) => state.zones);

const setStream = (stream) => {
const streamId = stream.id;
let currentSourceId = sourceId;
// RCA can only be used on its associated source, so swap if necessary
const moveSource = stream.type === "rca" && stream.index != sourceId;
// If the stream is already playing on a source, don't steal it; swap if necessary.
const moveSource = (stream.type === "rca" && stream.index != sourceId;) ||
(sources.some( (s) => s.input === `stream={streamId}` ));
if (moveSource) {
currentSourceId = stream.index;
// notify ZonesModal that we are using a different sourceId
Expand Down

0 comments on commit 902ec5d

Please sign in to comment.