Short answer: A Mac usually switches its sound to whatever connects, and AirPods can connect to it by themselves when you use them with another Apple device. To stop AirPods taking over, set “Connect to This Mac” to When Last Connected to This Mac in their settings; for anything else, choose the output again in Control Center → Sound. macOS has no setting for which device should win. SoundBar, a per-app volume mixer for Mac, has one: put your outputs in order and the highest one connected plays, mark a TV or capture card never to be used, and undo a switch from the notch.
How to stop it switching without another app
- For AirPods: with them connected, open System Settings, click their name in the sidebar, and under “Connect to This Mac” choose When Last Connected to This Mac. Click Audio & Routing first if you don’t see it.
- To switch back by hand, open Control Center → Sound and choose the device, or System Settings → Sound → Output.
- For a display or TV you never want sound from, choose your speakers in System Settings → Sound → Output each time it connects.
- To keep alert sounds on the Mac’s speakers, set “Play sound effects through” in System Settings → Sound.
Apple explains the AirPods setting in switching AirPods between devices.
The fix depends on what takes the sound: AirPods connecting by themselves, a display, or several devices each wanting it. The table lists each.
Keeping the sound where you want it
| What happens | Without another app | With SoundBar |
|---|---|---|
| AirPods connect to the Mac by themselves | Set them to When Last Connected to This Mac | The same, and an order decides where the sound goes |
| A monitor or TV takes the sound when it connects | Choose your speakers again each time | Mark it Never Switch to It, and the sound moves back |
| Speakers at the desk, headphones elsewhere | Choose by hand each time | Your order: the highest connected device plays |
| Undo a switch you didn’t want | Choose the old device again | Undo in the notch, for five seconds |
Why a Mac switches its output
When a device connects, macOS usually makes it the output: plug in headphones, connect a display with speakers or turn on AirPods, and the sound follows. Since macOS Sequoia, compatible AirPods can also move between your Mac and your other Apple devices by themselves, Apple says, when your devices are signed in to the same Apple Account. That is handy when it guesses right, and a nuisance when a call jumps to AirPods in their case or a film to a TV across the room.
An order for your outputs
SoundBar keeps a list of every output that has connected, in Settings → Devices. Turn on “Use my order for sound output”, drag the devices into the order you want, and the highest one connected plays the sound. The order is applied when a device connects or disconnects, so a choice you make in Control Center stands until then. Microphones have an order of their own.
Never switch to a device
Some devices should never play the sound: a TV, a capture card, a display with poor speakers. In Settings → Devices, choose Never Switch to It from the device’s menu, with or without an order. If macOS moves the sound there, SoundBar moves it straight back, to the device before it or the Mac’s own speakers.
When it doesn’t work
- AirPods still take over the Mac. Check that “Connect to This Mac”, in their settings under Audio & Routing, is set to When Last Connected to This Mac. It is set for each pair.
- The sound jumps to a device, then back. That is SoundBar moving it back from a device marked Never Switch to It, or one lower in your order: macOS switches first, SoundBar a moment after.
- The order isn’t followed. Turn on “Use my order for sound output” in Settings → Devices. A choice you make by hand stands until a device connects or disconnects.
- A device isn’t in the list. Devices appear as they connect. Connect it once.
- Undo doesn’t appear. It shows in the notch for five seconds, when the device before is still connected, with “Device changes, calls and the microphone” on in Settings → Notch.
Choose where the sound goes, with SoundBar
SoundBar puts your outputs and microphones in the order you choose: the highest one connected plays, a device marked Never Switch to It is never used, and the notch offers Undo when the sound moves somewhere you didn’t want.
How to set an order
- Download SoundBar, open it, and allow the audio access its guided setup asks for.
- Open Settings → Devices and turn on “Use my order for sound output”.
- Drag the devices into the order you want, or use Move Up and Move Down from a device’s menu.
- For a TV or capture card, choose Never Switch to It from its menu.
What you get
- An order for outputs, and one for microphones
- Never Switch to It, with or without an order
- Undo in the notch when the sound moves
- Bluetooth headphones kept at full quality on calls
What it doesn’t do
- It can’t stop AirPods connecting: it moves the sound after macOS does
- A choice made by hand stands until a device connects or disconnects
- Undo shows only in the notch
- It needs macOS 15 or later
Questions people ask
Why does my Mac keep switching to my AirPods?
AirPods can connect to a Mac by themselves, and macOS makes them the output. Set “Connect to This Mac” to When Last Connected to This Mac in their settings to stop it.
How do I stop my Mac switching sound to my monitor or TV?
macOS has no setting for it: choose your speakers again in Control Center → Sound. With SoundBar, mark the monitor Never Switch to It, and the sound moves back whenever macOS sends it there.
Can I set a priority for audio outputs on a Mac?
Not in macOS. SoundBar adds one: drag your outputs into order in Settings → Devices, and the highest one connected plays.
Does my Mac remember a volume for each device?
Yes. macOS keeps one for each output and goes back to it when you switch.
Can I stop AirPods switching between my iPhone and Mac?
Yes: in the AirPods’ settings on the Mac, set “Connect to This Mac” to When Last Connected to This Mac. They then connect to the Mac only when they were last used with it.
Related
- A different output for each app: music on speakers, calls on headphones
- AirPods sound worse on calls: keep them at full quality
- Volume on a monitor or TV: when the volume can’t be set
- Automatic output switching: on the home page