# Audio devices

Choosing input and output devices in Zene Studio, sample rate, and the multi-channel port model.

Source: https://zenestudio.org/docs/audio/audio-devices

Markdown version of the Zene Studio page at https://zenestudio.org/docs/audio/audio-devices. For a map of the whole site, see
https://zenestudio.org/llms.txt.

---
Everything you hear and record in Zene Studio goes through **audio devices**. Getting these right is
the first thing to do after installing.

## The mixer and the device settings

The **mixer** is where audio is routed, summed and measured. The device configuration is a separate
settings window, reachable from the settings menu. It covers which output the mix goes to, which
inputs are available, the sample rate and the buffer size.

They are separate on purpose: you can change your device without disturbing your routing, and change
your routing without touching the hardware.

## Sample rate

Set the sample rate to match your **hardware** where you can. Say your interface runs natively at
48 kHz and Zene Studio is set to 44.1 kHz. The audio backend then resamples, and you pay for it in
latency and in avoidable CPU.

A mismatch between the device and a **sample file** is a different matter and a normal one. Zene
Studio resamples imported samples to the project rate.

## Buffer size and latency

Lower buffer sizes mean lower latency and higher CPU. Reasonable starting points:

| Situation | Buffer size |
| --- | --- |
| Recording with a vocalist or guitar | 128–256 samples |
| Playing a live instrument | 64–128 samples |
| Mixing, arranging, composing | 512–2048 samples |
| Rendering an export | Irrelevant — exports render offline |

If playback stutters, raise the buffer size before touching anything else.

:::note
Live playback uses a thread pool. Exports render on a single thread so results are reproducible —
see [Export and render](/docs/audio/export-render).
:::

## The multi-channel port model

Zene Studio's mixer uses a **multi-channel port model**, in place of the fixed channel count older
DAWs imposed. In practice this means:

- there is **no fixed limit** on mixer channels;
- a device with more outputs than you expected can expose them;
- a track can be routed to any output pair, not only to "master".

This is what makes sidechain sends and parallel routing flexible: routing is a graph, not a fixed
set of slots.

## Recording inputs

Inputs are configured separately from outputs. If you cannot record, check that:

1. the input is enabled on your **device** (this is often an operating-system or interface-level
   setting, not a Zene Studio one);
2. the right **input** is selected in Zene Studio;
3. the track is **armed**.

Recording itself is still a prototype — see [Recording](/docs/audio/recording).

## Troubleshooting

| Symptom | Try |
| --- | --- |
| No sound at all | Confirm the device is set as the output, and that the master fader is up |
| Sound crackles or drops | Raise the buffer size |
| Playback is a semitone off | Your device rate and project rate disagree. Set them equal |
| Device does not appear | Close other applications holding it exclusively, then reopen Zene Studio |