Foobar2000:Preferences:Output: Difference between revisions

From Hydrogenaudio Knowledgebase
(→‎Output Device: update to match current display)
(copyedit)
 
(3 intermediate revisions by one other user not shown)
Line 6: Line 6:
* DS : ''<device name>'' - a specific DirectSound audio playback device. What it says depends on what devices you have installed.
* DS : ''<device name>'' - a specific DirectSound audio playback device. What it says depends on what devices you have installed.


Additional output devices can be added using [[Foobar2000:Components 0.9#Output|optional output components]], such as [[http://www.foobar2000.org/components/view/foo_out_wasapi foo_out_wasapi]] for WASAPI output (low-latency feed to a sound driver in exclusive mode, bypassing the Windows mixer).
Additional output devices can be added using [[Foobar2000:Components#Output|optional output components]], such as [http://www.foobar2000.org/components/view/foo_out_wasapi foo_out_wasapi] for WASAPI output (low-latency feed to a sound driver in exclusive mode, bypassing the Windows mixer).


== Buffer Length ==
== Buffer Length ==
To protect playback from glitches during heavy system load or file access lag, resource-heavy operations such as decoding and DSP are always performed ahead of currently heard sound (this is not unique to foobar2000, all or nearly all media players behave this way). This setting controls the distance between decoding/DSP and output.
To prevent playback from glitches during heavy system load or file access lag, resource-heavy operations such as decoding and DSP are always performed ahead of currently heard sound (this is not unique to foobar2000, all or nearly all media players behave this way). This setting controls the distance between decoding/DSP and output.
* High buffer sizes offer stronger protection against glitches but introduce side effects such as long delay between changing DSP settings (eg. adjusting equalizer bands) and changes in sound output.
* High buffer sizes offer better reduction on glitches but introduce side effects such as long delay between changing DSP settings (eg. adjusting equalizer bands), changes in sound output, and visualizations in VST plugins becoming more out-of-sync with the output.
* Low buffer sizes allow faster responses to DSP configuration changes at cost of higher risk of stuttering during high system load / file access lag / etc.
* Low buffer sizes allow faster responses to DSP configuration changes at cost of higher risk of stuttering during high system load / file access lag / etc.
''WARNING'': Setting too low buffer length may cause certain visualizations to stop working correctly. Use of buffer lengths below 500ms is not recommended.
'''WARNING''': Setting too low buffer length may cause certain visualizations to stop working correctly. Use of buffer lengths below 500ms is not recommended.


== Output Format ==
== Output Format ==
Line 20: Line 20:


== Dither ==
== Dither ==
This checkbox controls whether to perform dithering when playing audio that's encoded at a higher bit depth than the chosen output format.
This checkbox controls whether to add dither when playing audio that's encoded at a higher bit depth than the chosen output format.


[[Dither]] is noise which has been added in a manner which masks quantization noise: the distortion which is sometimes audible when playing digital audio at a lower bit depth than the original. Dithering gives the signal greater dynamic range than the lower bit depth allows, and can be perceived as improved, smoother sound quality, but it always comes at the price of added background noise—which, when audible, sounds like tape hiss. Dither exploits a feature of human hearing—the ability to distinguish signal from background noise—in order to preserve the higher bit-depth signal within the confines of the lower bit-depth format.
[[Dither]] is quiet broadband noise which is added in a manner intended to mask quantization noise, which is the distortion which is sometimes audible when playing digital audio at a lower bit depth than the original. By exploiting a feature of human hearing—the ability to distinguish signal from background noise—dither preserves the higher bit-depth signal within the confines of the lower bit-depth format. This gives the signal greater dynamic range than the lower bit depth allows, and can be perceived as improved, smoother sound quality, but it always comes at the price of added background noise—which, when audible, sounds like tape hiss. However, dither can be "shaped" to make it avoid lower frequencies, making it less audible to humans.<!--does foobar do this?-->


For a dramatic demonstration of the effect of dither, set the output format to 8-bit (if your soundcard supports it), and play an ordinary 16-bit audio file both with and without dither. The version with dither will have a fair amount of extra noise, but it will be less fuzzy/gritty than the version without. This is an exaggerated demonstration, because for the average human listener, the distortion that occurs when converting 16-bit to 8-bit is far more noticeable than that which occurs when converting 32-bit to 24-bit, or 24-bit to 16-bit.
Dither uses extra CPU power, and generally isn't necessary. The signal in most recorded audio is well within the 96 dB limit of 16-bit, and the distortion introduced in 24-to-16-bit conversion is so quiet as to almost always be masked by the signal, at least for human hearing. Nevertheless, if your soundcard can only handle a maximum of 16-bit input, but you tend to play, at loud volume, 24-bit audio files with very quiet sections that have no background noise, then you may want to enable dither, because it can make those extreme quietest parts of the audio audible, with the addition of hiss.


If your soundcard can only handle a maximum of 16-bit input, but you tend to play, at loud volume, 24-bit audio files with very quiet sections that have no background noise, then you may want to enable dither, because it can make those extreme quietest parts of the audio audible, albeit with the addition of hiss. However, dither uses extra CPU power, and generally isn't necessary because the signal in most recorded audio is well within the 96 dB limit of 16-bit, and because the distortion introduced in 24-to-16-bit conversion is so quiet as to almost always be masked by the signal, at least for human hearing.
For a dramatic demonstration of the effect of dither, set the output format to 8-bit (if your soundcard supports it), and play an ordinary 16-bit audio file both with and without dither. The version with dither will have a fair amount of extra noise, but it will be substantially less fuzzy/gritty than the version without. This is an exaggerated demonstration, because for the average human listener, the distortion that occurs when reducing the depth to 8-bit is far more noticeable than that which occurs when down-converting to 16 or 24 bit.
 
== Fading ==
This section appears when a DirectSound device is selected.
 
Without fading, transitions can be jarring when jumping from one track to the next, or when seeking within a track. This section allows this effect to be softened.
 
The sliders adjust the fade in and fade out values or the currently selected type of fade (pause & stop, seek within a track, manual track change, automatic track change). Arrow keys may allow the sliders to be adjusted with greater precision than a mouse or touch surface.

Latest revision as of 14:54, 1 May 2023

Foobar2000_Logo.png foobar2000
Preferences
Screenshot of the Output page
Screenshot of the Output page

Deprecated pages


Pages marked * are added via third-party components.

Output Device

Controls the physical device that played audio stream is sent to. Commonly available options include:

  • Null Output - does nothing; useful mainly for development/testing purposes.
  • DS : Primary Sound Driver - your system default DirectSound audio playback device as configured in Windows Sound control panel.
  • DS : <device name> - a specific DirectSound audio playback device. What it says depends on what devices you have installed.

Additional output devices can be added using optional output components, such as foo_out_wasapi for WASAPI output (low-latency feed to a sound driver in exclusive mode, bypassing the Windows mixer).

Buffer Length

To prevent playback from glitches during heavy system load or file access lag, resource-heavy operations such as decoding and DSP are always performed ahead of currently heard sound (this is not unique to foobar2000, all or nearly all media players behave this way). This setting controls the distance between decoding/DSP and output.

  • High buffer sizes offer better reduction on glitches but introduce side effects such as long delay between changing DSP settings (eg. adjusting equalizer bands), changes in sound output, and visualizations in VST plugins becoming more out-of-sync with the output.
  • Low buffer sizes allow faster responses to DSP configuration changes at cost of higher risk of stuttering during high system load / file access lag / etc.

WARNING: Setting too low buffer length may cause certain visualizations to stop working correctly. Use of buffer lengths below 500ms is not recommended.

Output Format

Controls the audio data format passed to the operating system / audio drivers / etc. You should refer to your soundcard's documentation to find the optimal setting; using bit depth higher than supported by your hardware might work but will not improve output audio quality in any way and may degrade performance.

Note that this option is not available with some output modes such as ASIO - ASIO architecture doesn't support variable data formats by design, the format that needs to be sent is determined by the driver.

Dither

This checkbox controls whether to add dither when playing audio that's encoded at a higher bit depth than the chosen output format.

Dither is quiet broadband noise which is added in a manner intended to mask quantization noise, which is the distortion which is sometimes audible when playing digital audio at a lower bit depth than the original. By exploiting a feature of human hearing—the ability to distinguish signal from background noise—dither preserves the higher bit-depth signal within the confines of the lower bit-depth format. This gives the signal greater dynamic range than the lower bit depth allows, and can be perceived as improved, smoother sound quality, but it always comes at the price of added background noise—which, when audible, sounds like tape hiss. However, dither can be "shaped" to make it avoid lower frequencies, making it less audible to humans.

Dither uses extra CPU power, and generally isn't necessary. The signal in most recorded audio is well within the 96 dB limit of 16-bit, and the distortion introduced in 24-to-16-bit conversion is so quiet as to almost always be masked by the signal, at least for human hearing. Nevertheless, if your soundcard can only handle a maximum of 16-bit input, but you tend to play, at loud volume, 24-bit audio files with very quiet sections that have no background noise, then you may want to enable dither, because it can make those extreme quietest parts of the audio audible, with the addition of hiss.

For a dramatic demonstration of the effect of dither, set the output format to 8-bit (if your soundcard supports it), and play an ordinary 16-bit audio file both with and without dither. The version with dither will have a fair amount of extra noise, but it will be substantially less fuzzy/gritty than the version without. This is an exaggerated demonstration, because for the average human listener, the distortion that occurs when reducing the depth to 8-bit is far more noticeable than that which occurs when down-converting to 16 or 24 bit.

Fading

This section appears when a DirectSound device is selected.

Without fading, transitions can be jarring when jumping from one track to the next, or when seeking within a track. This section allows this effect to be softened.

The sliders adjust the fade in and fade out values or the currently selected type of fade (pause & stop, seek within a track, manual track change, automatic track change). Arrow keys may allow the sliders to be adjusted with greater precision than a mouse or touch surface.