Stop preview channel from auto advancing.

This commit is contained in:
Matthew Stratford 2023-04-13 23:07:27 +01:00
parent 2dff76a146
commit 7401cde4a6

View file

@ -383,6 +383,11 @@ export function Player({ id }: { id: number }) {
if (id < PLAYER_COUNT) {
return ("player-" + id) as LevelsSource;
}
// We don't want the Preview channel doing anything silly, overwrite default player settings.
if (isPreviewChannel) {
dispatch(MixerState.setAutoAdvance({ player: id, enabled: false }));
}
throw new Error("Unknown Player VUMeter source: " + id);
};