# Audio Setup Toolbar

From Audacity Development Manual
Audio Setup Toolbar enables you to manage the setup of your audio input, adjust the project quality and output devices and adjust the latency of your computer.

| The settings you make here can also be made in Audio Settings Preferences.

## Host

Selects the particular host interface with which Audacity communicates with your chosen playback and recording devices.

Windows: on Windows the choice is between the following host audio interfaces:

- MME: This is the Audacity default and the most compatible with all audio devices.
- Windows DirectSound: This is more recent than MME with potentially less latency.
- Windows WASAPI: This host is the most recent Windows interface between applications (such as Audacity) and the audio interface driver. WASAPI was first officially released in 2007. WASAPI is particularly useful for "loopback" recording of computer playback. 24-bit recording devices are supported using this host. Playback is usually emulated. As a result, the playback slider in the Playback Meter will only scale the system playback slider's current level up or down rather than directly manipulating that system slider.

  WASAPI loopback has a big advantage over stereo mix or similar inputs provided by the audio interface. The capture is entirely digital (rather than converting to analog for playback, then back to digital when Audacity receives it).

Mac: On Mac the only choice is Core Audio.

Linux: On Linux there is often only one option: ALSA. Other options could be OSS and/or Jack Audio Connection Kit (also known as "Jack" or "Jackd").

## Playback Device

Selects the device to be used for playback. What is available will depend upon your computer and any other connected hardware.

## Recording Device

Selects the device used for recording. What is available will depend upon your computer and any other connected hardware. You may get different devices available when you change Host.

On Windows, each entry for recording device consists of the input type (such as microphone), followed by the name of the audio device the input belongs to. If you have multiple audio devices, the list will be grouped so that inputs of each device are grouped together. The input level of the selected device can be adjusted in Recording Meter.

## Recording Channels

The number of channels to be recorded. On most inbuilt sound devices, especially on Windows, only 1 (Mono) or 2 (Stereo) will be available.

- For some devices on Windows, choosing Windows DirectSound in "Host" above may be more likely to reveal options for recording more than two channels.
- On some devices capable of recording more than two channels, an explicit "multi" device may appear in the "Device" dropdown for recording all the channels simultaneously.

## Rescan Audio Devices

Rescan for audio devices connected to your computer, and update the playback and recording dropdown menus in Audio Setup Toolbar.

Alternatively, this can be accessed by Transport > Rescan Audio Devices

## Audio Settings

Brings up a dialog that enables you to make all the above settings plus the project quality and the ability to manage the latency on your computer:

## Quality

This panel sets the Project Sample Rate, Default Sample Rate and Default Sample Format. It is strongly recommended that you stick with the default settings.

- Project Sample Rate: Changing the Project Sample Rate immediately changes the sample rate at which new tracks will be recorded or generated in the current project, and at which existing tracks will be played or rendered. The Project Sample Rate is stored with your project when you save the project.

  The normally grayed-out figure to the right becomes active when you choose "Other" from the dropdown list, this enables you to overtype with a custom value of your choice.

Audacity supports multiple tracks with different sample rates.

The "Project Sample Rate" is the rate that the project is working in. If you have a project with two tracks, one with a sample rate of 8000 Hz and one with a sample rate of 48000 Hz, and the "Project Rate" is set to 44100 Hz, then:

- playback will be 44100 Hz
- any new tracks created by "Tracks menu > Add track" will be 44100 Hz
- any new track created by recording to a new track will be 44100 Hz
- mixing down tracks will mix to 44100 Hz

- Default Sample Rate: This is only used each time Audacity is launched or a new project window is opened. It just sets the Project Sample Rate which will be used in the project. It offers a choice of 13 Sample Rates.

  Generally you will want to use the default value of 44100 Hz, which can can reproduce all frequencies that humans can hear (up to 22050 Hz) and is the standard for audio CDs. To choose some other bespoke rate, click "Other" in the dropdown and type your rate into the box to right of the dropdown.

  Sample rates between 44100 Hz and 96000 Hz can produce higher quality but the quality benefits are increasingly small compared to rapidly increasing consumption of disk space and increasing risk of recording dropouts on slower computers. 192000 Hz music recordings could have ultrasonic playback distortion that make them inferior to recordings at lower rates. Very high rates do have some specialized uses such as ultrasonic wildlife recordings and high-speed tape capture.

  The normally grayed-out figure to the right becomes active when you choose "Other" from the dropdown list, this enables you to overtype with a custom value of your choice.

| Changing this Preference setting will not change your project's Project Sample Rate, so if you wish your current project to use the new sample rate you will need to reset that as well.

- Default Sample Format: This sets the Sample Format (bit depth) which will be used each time Audacity is launched, or each time a new project window or track is opened. It offers a choice of three sample formats or bit-depths. This affects both imported and newly recorded material, either in a new or existing project (even if the other audio in an existing project is at some other quality).

  A changed setting also acts immediately on the current project, affecting any subsequent new tracks you record.

  The current Sample Format is NOT stored with the project for re-use the net time you open the project

  The default 32-bit float resolution gives the highest quality of the three choices, but takes twice the storage space on disk compared to 16-bit resolution.

| It is strongly recommended that you work with this at the default 32-bit float resolution if you have sufficient available disk space.

| OGG will always import at 16-bit resolution using the standard OGG Vorbis importer, irrespective of Default Sample Format. This is due to the design of the OGG codec. However OGG can be imported at 32-bit resolution using FFmpeg, as described at Using the file type dropdown menu on the Importing Audio page.

### Latency

- Buffer length: A "buffer" is a chunk of audio waiting for the computer to process it. At the default 100 milliseconds (ms) setting, the audio will take 0.1 seconds to travel through the audio interface when recording or playing. Decreasing this value means recordings will be laid down on disk with less latency, and playback may respond faster. However, the computer will have to work faster so that it is ready to process the shorter chunks as soon as required. Setting this value too low (for example to 1 ms) will mean the computer will not be able to keep up, and neither recording or playback will work. 100 ms is a safe setting for most computers.

| Settings below 20ms, or 30 ms if you are using the Audacity default MME host, may cause you to get clicky playback.

- Latency compensation: When recording, it takes a small amount of time for the sound to be converted to digital data and written to the track. This time delay is the recording latency and is typically around 130 ms (0.13 seconds) for consumer level equipment. By compensating for this delay, sounds are written to the track at the correct time relative to the Timeline, and other tracks in the project. The actual amount of delay depends on the hardware and audio settings, so for accurate synchronization in multi-track recording, this setting should be calibrated as described in the Latency Compensation] page on the Muse Support site.

| See Latency Compensation for details on how to adjust latency on you computer set-up.

## Alternatives

### Audio Settings Preferences

As an alternative to using Audio Setup, you can make and change all the same settings with Audio Settings Preferences.

### Device Toolbar

With Device Toolbar you can make and change most of the same settings with the exception of the latency settings.

Note that he Device Toolbar is NOT displayed by default in Audacity. To enable it, click on View > Toolbars and check on Device Toolbar.