{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "system-audio-mixer",
  "title": "System Audio Mixer",
  "description": "The complete mixer: microphone, system audio, music and sound pads with meters, faders, mute, solo, monitor and ducking, a limited master and a mixed output stream, all running on Web Audio.",
  "dependencies": [
    "@phosphor-icons/react"
  ],
  "registryDependencies": [
    "button",
    "switch",
    "tabs",
    "popover",
    "@audiocn/mixer",
    "@audiocn/channel-strip",
    "@audiocn/level-meter",
    "@audiocn/fader",
    "@audiocn/channel-toggle",
    "@audiocn/audio-device-select",
    "@audiocn/sound-pad",
    "@audiocn/use-mixer",
    "@audiocn/use-web-audio-mixer",
    "@audiocn/use-microphone",
    "@audiocn/use-system-audio",
    "@audiocn/use-audio-devices",
    "@audiocn/use-audio-player",
    "@audiocn/use-sound",
    "@audiocn/use-audio-context",
    "@audiocn/use-gain-node"
  ],
  "files": [
    {
      "path": "components/blocks/system-audio-mixer/system-audio-mixer.tsx",
      "content": "\"use client\";\n\nimport {\n  ArrowCounterClockwiseIcon,\n  DesktopIcon,\n  GearSixIcon,\n  MicrophoneIcon,\n  MusicNotesIcon,\n  PauseIcon,\n  PlayIcon,\n  SkipForwardIcon,\n  SquaresFourIcon,\n  WaveformIcon,\n} from \"@phosphor-icons/react\";\nimport { useEffect, useEffectEvent, useState } from \"react\";\n\nimport { MixerMasterStrip } from \"@/components/blocks/system-audio-mixer/mixer-master-strip\";\nimport { MixerSourceStrip } from \"@/components/blocks/system-audio-mixer/mixer-source-strip\";\nimport { AudioDeviceSelect } from \"@/components/ui/audio-device-select\";\nimport { Button } from \"@/components/ui/button\";\nimport { ChannelStripNotice } from \"@/components/ui/channel-strip\";\nimport type { ChannelStripStatusProps } from \"@/components/ui/channel-strip\";\nimport {\n  Mixer,\n  MixerActions,\n  MixerChannels,\n  MixerEmpty,\n  MixerHeader,\n  MixerMaster,\n  MixerSeparator,\n  MixerTitle,\n} from \"@/components/ui/mixer\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\nimport {\n  SoundPad,\n  SoundPadGrid,\n  SoundPadLabel,\n  SoundPadProgress,\n  SoundPadShortcut,\n} from \"@/components/ui/sound-pad\";\nimport { Switch } from \"@/components/ui/switch\";\nimport { Tabs, TabsList, TabsTrigger } from \"@/components/ui/tabs\";\nimport { useAudioDevices } from \"@/hooks/use-audio-devices\";\nimport { useAudioPlayer } from \"@/hooks/use-audio-player\";\nimport type { AudioPlayerController } from \"@/hooks/use-audio-player\";\nimport { useGainNode } from \"@/hooks/use-gain-node\";\nimport { useMicrophone } from \"@/hooks/use-microphone\";\nimport type { UseMicrophoneResult } from \"@/hooks/use-microphone\";\nimport { useMixer } from \"@/hooks/use-mixer\";\nimport type { Mixer as MixerController } from \"@/hooks/use-mixer\";\nimport { useSound } from \"@/hooks/use-sound\";\nimport { useSystemAudio } from \"@/hooks/use-system-audio\";\nimport type { UseSystemAudioResult } from \"@/hooks/use-system-audio\";\nimport { useWebAudioMixer } from \"@/hooks/use-web-audio-mixer\";\nimport type { FrameSource, MeterFrame, Orientation } from \"@/lib/audio/types\";\nimport { cn } from \"@/lib/utils\";\n\nexport type MixerSourceId = \"microphone\" | \"system\" | \"music\" | \"sounds\";\n\nexport interface MixerTrack {\n  id: string;\n  title: string;\n  artist?: string;\n  src: string;\n}\n\nexport interface MixerSound {\n  id: string;\n  label: string;\n  src: string | AudioBuffer;\n  hotkey?: string;\n  accent?: string;\n}\n\nexport interface SystemAudioMixerProps {\n  /** Rows or console strips. Default `horizontal`. */\n  defaultOrientation?: Orientation;\n  /** Which sources to show. Default all four. */\n  sources?: MixerSourceId[];\n  /** Save mixer settings to localStorage under this key. */\n  persistKey?: string;\n  /** The mixed output, for recording or streaming. */\n  onOutputChange?: (stream: MediaStream | null) => void;\n  /** Tracks for the music channel. */\n  tracks?: MixerTrack[];\n  /** Sounds for the sounds channel. */\n  sounds?: MixerSound[];\n  className?: string;\n}\n\nconst ALL_SOURCES: MixerSourceId[] = [\n  \"microphone\",\n  \"system\",\n  \"music\",\n  \"sounds\",\n];\n\nconst NO_TRACKS: MixerTrack[] = [];\nconst NO_SOUNDS: MixerSound[] = [];\n\nconst CHANNELS = [\n  { id: \"microphone\" },\n  { gainDb: -6, id: \"system\" },\n  { gainDb: -12, id: \"music\", monitor: true },\n  { gainDb: -6, id: \"sounds\", monitor: true },\n];\n\ninterface Status {\n  label: string;\n  tone: ChannelStripStatusProps[\"tone\"];\n}\n\nconst MixerPad = ({\n  sound,\n  bus,\n}: {\n  sound: MixerSound;\n  bus: AudioNode | null;\n}) => {\n  const player = useSound(sound.src, { destination: bus });\n  return (\n    <SoundPad\n      accent={sound.accent}\n      hotkey={sound.hotkey}\n      loading={!player.isLoaded}\n      onTrigger={() => player.play()}\n      playing={player.isPlaying}\n      size=\"sm\"\n    >\n      <SoundPadLabel>{sound.label}</SoundPadLabel>\n      <SoundPadShortcut />\n      <SoundPadProgress source={player.progress} />\n    </SoundPad>\n  );\n};\n\ninterface ChannelProps {\n  mixer: MixerController;\n  meter: FrameSource<MeterFrame>;\n}\n\nconst microphoneStatus = (\n  microphone: UseMicrophoneResult,\n  audible: boolean\n): Status => {\n  if (microphone.status === \"active\") {\n    return audible\n      ? { label: \"Live\", tone: \"live\" }\n      : { label: \"Muted\", tone: \"muted\" };\n  }\n  if (microphone.status === \"denied\") {\n    return { label: \"Blocked\", tone: \"error\" };\n  }\n  return { label: \"Off\", tone: \"default\" };\n};\n\nconst systemStatus = (system: UseSystemAudioResult): Status => {\n  if (system.status === \"active\") {\n    return { label: \"On\", tone: \"live\" };\n  }\n  if (system.status === \"unsupported\") {\n    return { label: \"Unsupported\", tone: \"warning\" };\n  }\n  return { label: \"Off\", tone: \"default\" };\n};\n\nconst MicrophoneChannel = ({\n  microphone,\n  deviceId,\n  onDeviceChange,\n  mixer,\n  meter,\n}: ChannelProps & {\n  microphone: UseMicrophoneResult;\n  deviceId: string | null;\n  onDeviceChange: (deviceId: string | null) => void;\n}) => {\n  const devices = useAudioDevices();\n  const active = microphone.status === \"active\";\n  const deviceLabel =\n    devices.devices.find((device) => device.id === deviceId)?.label ??\n    \"Default microphone\";\n\n  return (\n    <MixerSourceStrip\n      accent=\"var(--chart-2)\"\n      actions={\n        <>\n          <Popover>\n            <PopoverTrigger\n              render={\n                <Button\n                  aria-label=\"Microphone settings\"\n                  size=\"icon-xs\"\n                  variant=\"ghost\"\n                />\n              }\n            >\n              <GearSixIcon />\n            </PopoverTrigger>\n            <PopoverContent className=\"w-72\">\n              <AudioDeviceSelect\n                devices={devices.devices}\n                loading={devices.isLoading}\n                onRequestPermission={() => devices.requestPermission()}\n                onValueChange={onDeviceChange}\n                permission={\n                  devices.permission === \"unsupported\"\n                    ? \"denied\"\n                    : devices.permission\n                }\n                value={deviceId}\n              />\n            </PopoverContent>\n          </Popover>\n          <Button\n            onClick={active ? microphone.stop : microphone.start}\n            size=\"xs\"\n            variant={active ? \"secondary\" : \"outline\"}\n          >\n            {active ? \"Stop\" : \"Start\"}\n          </Button>\n        </>\n      }\n      description={active ? deviceLabel : \"Not listening\"}\n      icon={<MicrophoneIcon />}\n      id=\"microphone\"\n      meter={meter}\n      mixer={mixer}\n      notice={\n        microphone.status === \"denied\" ? (\n          <ChannelStripNotice variant=\"destructive\">\n            Microphone access is blocked. Allow it in your browser&apos;s site\n            settings.\n          </ChannelStripNotice>\n        ) : null\n      }\n      status={microphoneStatus(microphone, mixer.isAudible(\"microphone\"))}\n      title=\"Microphone\"\n    />\n  );\n};\n\nconst SystemChannel = ({\n  system,\n  mixer,\n  meter,\n}: ChannelProps & { system: UseSystemAudioResult }) => {\n  const active = system.status === \"active\";\n  return (\n    <MixerSourceStrip\n      accent=\"var(--chart-4)\"\n      actions={\n        <Switch\n          aria-label=\"Capture system audio\"\n          checked={active}\n          disabled={!system.isSupported}\n          onCheckedChange={(checked) =>\n            checked ? system.start() : system.stop()\n          }\n          size=\"sm\"\n        />\n      }\n      description={active ? \"Capturing\" : \"Share a screen or tab with audio\"}\n      icon={<DesktopIcon />}\n      id=\"system\"\n      meter={meter}\n      mixer={mixer}\n      monitorable={false}\n      notice={\n        system.status === \"no-audio\" ? (\n          <ChannelStripNotice variant=\"warning\">\n            Nothing to hear: tick &quot;Share audio&quot; in the browser&apos;s\n            picker.\n          </ChannelStripNotice>\n        ) : null\n      }\n      status={systemStatus(system)}\n      title=\"System audio\"\n    />\n  );\n};\n\nconst MusicChannel = ({\n  player,\n  track,\n  trackCount,\n  onNext,\n  mixer,\n  meter,\n}: ChannelProps & {\n  player: AudioPlayerController;\n  track: MixerTrack | undefined;\n  trackCount: number;\n  onNext: () => void;\n}) => (\n  <MixerSourceStrip\n    accent=\"var(--chart-1)\"\n    actions={\n      <>\n        <Button\n          aria-label={player.playing ? \"Pause music\" : \"Play music\"}\n          disabled={!track}\n          onClick={() => player.toggle()}\n          size=\"icon-xs\"\n          variant=\"ghost\"\n        >\n          {player.playing ? <PauseIcon /> : <PlayIcon />}\n        </Button>\n        <Button\n          aria-label=\"Next track\"\n          disabled={trackCount < 2}\n          onClick={onNext}\n          size=\"icon-xs\"\n          variant=\"ghost\"\n        >\n          <SkipForwardIcon />\n        </Button>\n      </>\n    }\n    description={track ? track.title : \"No tracks\"}\n    icon={<MusicNotesIcon />}\n    id=\"music\"\n    meter={meter}\n    mixer={mixer}\n    status={player.playing ? { label: \"Playing\", tone: \"live\" } : undefined}\n    title=\"Music\"\n  />\n);\n\nconst SoundsChannel = ({\n  sounds,\n  bus,\n  mixer,\n  meter,\n}: ChannelProps & { sounds: MixerSound[]; bus: AudioNode | null }) => (\n  <MixerSourceStrip\n    accent=\"var(--chart-3)\"\n    actions={\n      <Popover>\n        <PopoverTrigger\n          render={\n            <Button\n              aria-label=\"Sound pads\"\n              disabled={sounds.length === 0}\n              size=\"icon-xs\"\n              variant=\"ghost\"\n            />\n          }\n        >\n          <SquaresFourIcon />\n        </PopoverTrigger>\n        <PopoverContent className=\"w-80\">\n          <SoundPadGrid className=\"[--pad-min-width:4rem]\" columns={4} hotkeys>\n            {sounds.map((sound) => (\n              <MixerPad bus={bus} key={sound.id} sound={sound} />\n            ))}\n          </SoundPadGrid>\n        </PopoverContent>\n      </Popover>\n    }\n    description={`${sounds.length} pads`}\n    icon={<WaveformIcon />}\n    id=\"sounds\"\n    meter={meter}\n    mixer={mixer}\n    title=\"Sounds\"\n  />\n);\n\nexport const SystemAudioMixer = ({\n  defaultOrientation = \"horizontal\",\n  sources = ALL_SOURCES,\n  persistKey,\n  onOutputChange,\n  tracks = NO_TRACKS,\n  sounds = NO_SOUNDS,\n  className,\n}: SystemAudioMixerProps) => {\n  const [orientation, setOrientation] =\n    useState<Orientation>(defaultOrientation);\n  const mixer = useMixer({ channels: CHANNELS, persistKey });\n\n  const [deviceId, setDeviceId] = useState<string | null>(null);\n  const microphone = useMicrophone({ deviceId });\n  const system = useSystemAudio();\n\n  const [trackIndex, setTrackIndex] = useState(0);\n  const track = tracks[trackIndex];\n  const nextTrack = () =>\n    setTrackIndex((index) =>\n      tracks.length > 0 ? (index + 1) % tracks.length : 0\n    );\n  const player = useAudioPlayer({ onEnded: nextTrack, src: track?.src });\n\n  // Sound pads play into one bus so the mixer sees them as a single source.\n  const soundBus = useGainNode({ destination: null });\n\n  const graph = useWebAudioMixer(mixer, {\n    ducking: { targets: [\"music\"], trigger: \"microphone\" },\n    inputs: {\n      microphone: microphone.stream,\n      music: player.element,\n      sounds: soundBus,\n      system: system.stream,\n    },\n  });\n\n  // Fires when the stream changes, not on every render of the parent.\n  const emitOutput = useEffectEvent((stream: MediaStream | null) => {\n    onOutputChange?.(stream);\n  });\n\n  useEffect(() => {\n    emitOutput(graph.output);\n  }, [graph.output]);\n\n  const show = (id: MixerSourceId) => sources.includes(id);\n  const meterFor = (id: MixerSourceId) =>\n    graph.meters[id] ?? graph.master.meter;\n\n  return (\n    <Mixer\n      className={cn(\"[--channel-strip-header-width:16rem]\", className)}\n      orientation={orientation}\n    >\n      <MixerHeader>\n        <MixerTitle>Audio mixer</MixerTitle>\n        <MixerActions>\n          <Tabs\n            onValueChange={(value) => setOrientation(value as Orientation)}\n            value={orientation}\n          >\n            <TabsList>\n              <TabsTrigger value=\"horizontal\">Rows</TabsTrigger>\n              <TabsTrigger value=\"vertical\">Console</TabsTrigger>\n            </TabsList>\n          </Tabs>\n          <Button\n            aria-label=\"Reset mixer\"\n            onClick={() => mixer.reset()}\n            size=\"icon-sm\"\n            variant=\"ghost\"\n          >\n            <ArrowCounterClockwiseIcon />\n          </Button>\n        </MixerActions>\n      </MixerHeader>\n      <MixerChannels>\n        {show(\"microphone\") ? (\n          <MicrophoneChannel\n            deviceId={deviceId}\n            meter={meterFor(\"microphone\")}\n            microphone={microphone}\n            mixer={mixer}\n            onDeviceChange={setDeviceId}\n          />\n        ) : null}\n        {show(\"system\") ? (\n          <SystemChannel\n            meter={meterFor(\"system\")}\n            mixer={mixer}\n            system={system}\n          />\n        ) : null}\n        {show(\"music\") ? (\n          <MusicChannel\n            meter={meterFor(\"music\")}\n            mixer={mixer}\n            onNext={nextTrack}\n            player={player}\n            track={track}\n            trackCount={tracks.length}\n          />\n        ) : null}\n        {show(\"sounds\") ? (\n          <SoundsChannel\n            bus={soundBus}\n            meter={meterFor(\"sounds\")}\n            mixer={mixer}\n            sounds={sounds}\n          />\n        ) : null}\n      </MixerChannels>\n      <MixerEmpty>No audio sources.</MixerEmpty>\n      <MixerSeparator />\n      <MixerMaster>\n        <MixerMasterStrip meter={graph.master.meter} mixer={mixer} />\n      </MixerMaster>\n    </Mixer>\n  );\n};\n",
      "type": "registry:block"
    },
    {
      "path": "components/blocks/system-audio-mixer/mixer-source-strip.tsx",
      "content": "\"use client\";\n\nimport { HeadphonesIcon } from \"@phosphor-icons/react\";\nimport type { ReactNode } from \"react\";\n\nimport {\n  ChannelStrip,\n  ChannelStripActions,\n  ChannelStripControls,\n  ChannelStripDescription,\n  ChannelStripFader,\n  ChannelStripHeader,\n  ChannelStripIcon,\n  ChannelStripMeter,\n  ChannelStripStatus,\n  ChannelStripText,\n  ChannelStripTitle,\n  ChannelStripValue,\n} from \"@/components/ui/channel-strip\";\nimport type { ChannelStripStatusProps } from \"@/components/ui/channel-strip\";\nimport {\n  MonitorToggle,\n  MuteToggle,\n  SoloToggle,\n} from \"@/components/ui/channel-toggle\";\nimport {\n  Fader,\n  FaderRange,\n  FaderThumb,\n  FaderTrack,\n} from \"@/components/ui/fader\";\nimport { LevelMeter } from \"@/components/ui/level-meter\";\nimport type { Mixer } from \"@/hooks/use-mixer\";\nimport { formatDb } from \"@/lib/audio/decibels\";\nimport type { FrameSource, MeterFrame } from \"@/lib/audio/types\";\n\nexport interface MixerSourceStripProps {\n  id: string;\n  title: string;\n  description?: ReactNode;\n  icon: ReactNode;\n  accent?: string;\n  mixer: Mixer;\n  meter: FrameSource<MeterFrame>;\n  status?: { label: string; tone: ChannelStripStatusProps[\"tone\"] };\n  /** Buttons in the header. */\n  actions?: ReactNode;\n  /** A ChannelStripNotice, shown under the strip. */\n  notice?: ReactNode;\n  /** Show the monitor toggle. Default true. */\n  monitorable?: boolean;\n  disabled?: boolean;\n}\n\nexport const MixerSourceStrip = ({\n  id,\n  title,\n  description,\n  icon,\n  accent,\n  mixer,\n  meter,\n  status,\n  actions,\n  notice,\n  monitorable = true,\n  disabled = false,\n}: MixerSourceStripProps) => {\n  const channel = mixer.channel(id);\n  if (!channel) {\n    return null;\n  }\n\n  return (\n    <ChannelStrip\n      accent={accent}\n      dimmed={mixer.isDimmed(id)}\n      disabled={disabled}\n      muted={channel.muted}\n      solo={channel.solo}\n    >\n      <ChannelStripHeader>\n        <ChannelStripIcon>{icon}</ChannelStripIcon>\n        <ChannelStripText>\n          <ChannelStripTitle>{title}</ChannelStripTitle>\n          {description ? (\n            <ChannelStripDescription>{description}</ChannelStripDescription>\n          ) : null}\n        </ChannelStripText>\n        {status ? (\n          <ChannelStripStatus tone={status.tone}>\n            {status.label}\n          </ChannelStripStatus>\n        ) : null}\n        {actions ? <ChannelStripActions>{actions}</ChannelStripActions> : null}\n      </ChannelStripHeader>\n      <ChannelStripMeter>\n        <LevelMeter\n          aria-label={`${title} level`}\n          channelCount={2}\n          className=\"h-full\"\n          size=\"sm\"\n          source={meter}\n        />\n      </ChannelStripMeter>\n      <ChannelStripFader>\n        <Fader\n          aria-label={`${title} volume`}\n          max={12}\n          min={-60}\n          onValueChange={(gainDb) => mixer.setGain(id, gainDb)}\n          silenceAtMin\n          size=\"sm\"\n          taper=\"audio\"\n          value={channel.gainDb}\n        >\n          <FaderTrack>\n            <FaderRange />\n            <FaderThumb />\n          </FaderTrack>\n        </Fader>\n      </ChannelStripFader>\n      <ChannelStripValue>\n        {formatDb(channel.gainDb, { floorDb: -60 })}\n      </ChannelStripValue>\n      <ChannelStripControls>\n        <MuteToggle\n          aria-label={`Mute ${title}`}\n          onPressedChange={(muted) => mixer.setMuted(id, muted)}\n          pressed={channel.muted}\n          size=\"sm\"\n        >\n          M\n        </MuteToggle>\n        <SoloToggle\n          aria-label={`Solo ${title}`}\n          onPressedChange={(solo) => mixer.setSolo(id, solo)}\n          pressed={channel.solo}\n          size=\"sm\"\n        >\n          S\n        </SoloToggle>\n        {monitorable ? (\n          <MonitorToggle\n            aria-label={`Monitor ${title}`}\n            onPressedChange={(monitor) => mixer.setMonitor(id, monitor)}\n            pressed={channel.monitor}\n            size=\"sm\"\n          >\n            <HeadphonesIcon />\n          </MonitorToggle>\n        ) : null}\n      </ChannelStripControls>\n      {notice}\n    </ChannelStrip>\n  );\n};\n",
      "type": "registry:block"
    },
    {
      "path": "components/blocks/system-audio-mixer/mixer-master-strip.tsx",
      "content": "\"use client\";\n\nimport { SpeakerHighIcon } from \"@phosphor-icons/react\";\n\nimport {\n  ChannelStrip,\n  ChannelStripControls,\n  ChannelStripDescription,\n  ChannelStripFader,\n  ChannelStripHeader,\n  ChannelStripIcon,\n  ChannelStripMeter,\n  ChannelStripText,\n  ChannelStripTitle,\n  ChannelStripValue,\n} from \"@/components/ui/channel-strip\";\nimport { MuteToggle } from \"@/components/ui/channel-toggle\";\nimport {\n  Fader,\n  FaderRange,\n  FaderThumb,\n  FaderTrack,\n} from \"@/components/ui/fader\";\nimport {\n  LevelMeter,\n  LevelMeterBar,\n  LevelMeterChannel,\n  LevelMeterChannels,\n  LevelMeterClip,\n  LevelMeterHold,\n  LevelMeterTrack,\n} from \"@/components/ui/level-meter\";\nimport type { Mixer } from \"@/hooks/use-mixer\";\nimport { formatDb } from \"@/lib/audio/decibels\";\nimport type { FrameSource, MeterFrame } from \"@/lib/audio/types\";\n\nconst CHANNELS = [0, 1];\n\nexport interface MixerMasterStripProps {\n  mixer: Mixer;\n  meter: FrameSource<MeterFrame>;\n}\n\nexport const MixerMasterStrip = ({ mixer, meter }: MixerMasterStripProps) => (\n  <ChannelStrip muted={mixer.master.muted} variant=\"master\">\n    <ChannelStripHeader>\n      <ChannelStripIcon>\n        <SpeakerHighIcon />\n      </ChannelStripIcon>\n      <ChannelStripText>\n        <ChannelStripTitle>Master</ChannelStripTitle>\n        <ChannelStripDescription>Mix output</ChannelStripDescription>\n      </ChannelStripText>\n    </ChannelStripHeader>\n    <ChannelStripMeter>\n      <LevelMeter aria-label=\"Master level\" className=\"h-full\" source={meter}>\n        <LevelMeterChannels>\n          {CHANNELS.map((index) => (\n            <LevelMeterChannel index={index} key={index}>\n              <LevelMeterTrack>\n                <LevelMeterBar />\n                <LevelMeterHold />\n              </LevelMeterTrack>\n            </LevelMeterChannel>\n          ))}\n        </LevelMeterChannels>\n        <LevelMeterClip showCount />\n      </LevelMeter>\n    </ChannelStripMeter>\n    <ChannelStripFader>\n      <Fader\n        aria-label=\"Master volume\"\n        max={6}\n        min={-60}\n        onValueChange={(value) => mixer.setMasterGain(value)}\n        silenceAtMin\n        size=\"sm\"\n        taper=\"audio\"\n        value={mixer.master.gainDb}\n      >\n        <FaderTrack>\n          <FaderRange />\n          <FaderThumb />\n        </FaderTrack>\n      </Fader>\n    </ChannelStripFader>\n    <ChannelStripValue>\n      {formatDb(mixer.master.gainDb, { floorDb: -60 })}\n    </ChannelStripValue>\n    <ChannelStripControls>\n      <MuteToggle\n        aria-label=\"Mute master\"\n        onPressedChange={(value) => mixer.setMasterMuted(value)}\n        pressed={mixer.master.muted}\n        size=\"sm\"\n      >\n        M\n      </MuteToggle>\n    </ChannelStripControls>\n  </ChannelStrip>\n);\n",
      "type": "registry:block"
    }
  ],
  "categories": [
    "mixer"
  ],
  "type": "registry:block"
}