All files / player-engine/src signals.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46                                                                                           
/**
 * `@be-music/player-engine/signals`: what a host's input and UI runtimes exchange with a running play — the input bus and the
 * commands it carries, the UI bus with its frames and commands, the judge / combo / high-speed state signals, and the
 * high-speed range with the actions that step it.
 *
 * Kept apart from the package root so a UI worker can hold the buses without loading the play loop.
 */
export {
  createPlayerInputSignalBus,
  type PlayerInputCommand,
  type PlayerInputSignalBus,
} from './core/input-signal-bus.ts';
export type { ScratchSpin } from './core/scratch-spin.ts';
export type { InputSource, InputSourceDevice, InputSourceKind, TurntableDirection } from './core/input-source.ts';
export {
  createPlayerUISignalBus,
  type PlayerGaugeSummary,
  type PlayerHCNLaneState,
  type PlayerUICommand,
  type PlayerUIFrameClock,
  type PlayerUIFrameNote,
  type PlayerUIFramePayload,
  type PlayerUIFrameSummary,
  type PlayerUIHellChargeState,
  type PlayerUILongNoteMode,
  type PlayerUILongNoteOutcome,
  type PlayerUISeekJudgment,
  type PlayerUISeekSnapshot,
  type PlayerUISignalBus,
} from './core/ui-signal-bus.ts';
export {
  createPlayerStateSignals,
  type PlayerJudgeComboSignalState,
  type PlayerStateSignals,
} from './state-signals.ts';
export {
  applyHighSpeedControlAction,
  DEFAULT_HIGH_SPEED,
  HIGH_SPEED_STEP,
  MAX_HIGH_SPEED,
  MIN_HIGH_SPEED,
  resolveHighSpeedControlActionFromLaneChannels,
  resolveHighSpeedMultiplier,
  type HighSpeedControlAction,
} from './core/high-speed-control.ts';