Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which version of linux has support for Dolby Advanced Audio v2?

Tags:

linux

audio

dolby

I am using LENEVO G500 Laptop and my sound card has support for Dolby Advanced Audio v2 that works nicely in Windows OS (i.e. Windows 7, 8 and 8.1). However I have failed to enable Dolby sound effect in my Linux OS (have tried it with Linux Mint 17, Fedora 20).

Does anyone have an idea which linux version has support for this feature or how I can enable in a linux OS.

I would appreciate if you could direct me to the right direction.

Thanks.

like image 532
ashenafis Avatar asked Nov 25 '14 09:11

ashenafis


2 Answers

I've googled out a very good advise on forums that helps me to achieve a Dolby like sound on my Kubuntu 19.04 with Lenovo g780.

  1. Install PulseEffects https://github.com/wwmm/pulseeffects
    (repos with deb files are here: https://github.com/wwmm/pulseeffects/wiki/Package-Repositories#debian--ubuntu)
  2. Restart the user session or reboot after this, because PulseAudio will be upgraded, and it may cause problems if you don't restart.
  3. Run PulseEffects and close it. It'll create all settings dirs on first launch. They required for next step.
  4. Install PulseEffects-Presets from here: https://github.com/JackHack96/PulseEffects-Presets
    (I've used the suggested script that automatically downloads them to PulseEffects import dirs, it will require flatpak that could be got from repos with sudo apt install flatpak)
  5. Launch PulseEffects again. Select Convolver. Enable it. Click on wave button. You'll see a list of presets. Enable:
Dolby ATMOS ((128K MP3)) 1.Default.irs

Close the dialog and that's it. You can toggle Convolver in PulseEffects on and off while playng music to compare results. You may play with other presets as well.

For improving sound on a notebook or a tablet PulseEffects help pages come with a tuorial about how to achieve this.

App can be minimized to tray on GTK-enabled desktops with an additional application: https://github.com/boomshop/pulseffectstray

It's better enable autostart in app settings (it will copy it's desktop file to ~/.config/autostart with --gapplication-service command line. So next time start without GUI).

like image 139
truf Avatar answered Jan 04 '23 04:01

truf


It is possible to get reasonably close to the Dolby Advanced Audio output on Linux.

TLDR:

Record the result of playing a -0dBFS impulse in Windows with all effects enabled. Save that as a wav file and use it as input to the PulseEffects Convolver.

Step-by-step:

  1. Install Audacity in Windows.
  2. Configure Audacity to use WASAPI
  3. Select the loopback device as input
  4. Select your laptop speakers as output, making sure all Dolby Advanced Audio effects are enabled.
  5. Start recording
  6. Play an impulse audio file (you might need to do this twice, Audacity often doesn't pick up the first impulse.
  7. Zoom in and select the area around the recorded impulse (see screenshot below)
  8. Export the selection as a WAV file and change the extension to irs
  9. Import this irs file into the Convolver.

enter image description here

Some notes:

Audacity isn't required, presumably any software capable of recording from the output device will be fine.

To avoid any changes introduced by sample rate conversion, set the sample rate of the output and input devices in Windows to be the same.

When recording, in Step 5, Audacity would not record unless audio was playing. This is probably due to using WASAPI. Just start recording, play the impulse and if you don't see it in the recording output as a single spike, play it again.

The screenshot is quite heavily zoomed in so that you can see the area where there is data. When selecting what to export, try to make sure the selection is roughly centered around the central peak. It doesn't have to be perfect.

As a useful check to make sure what you are recording has been processed by Dolby Advanced Audio, you can disable all effects on the output device in Windows and record the impulse a second time. This should show up as a single peak sample and not the symmetric pattern.

like image 37
Tim Avatar answered Jan 04 '23 05:01

Tim