EDIT: The solution that I am proposing is a workaround. To be clear, I am not suggesting that this fix be applied to the official Dolphin release. Still, I would recommend to anyone compiling Dolphin on Linux that he/she follow this procedure.
As I discovered when I had the need to post this thread, it is useful for a user of Dolphin to have as many audio backend options as possible to ensure that at least one of them works well for him/her. Had I not found the need for this fix, applied it, and recompiled and reinstalled Dolphin, I would not have the OpenAL audio backend option, even though I have both libopenal1 and libopenal-dev installed from my repositories.
First, check your repositories to see whether libopenal1 and libopenal-dev are installed. If not, install them. If they are not even in your repositories, Google them, and get them installed. The exact procedure for these steps depends on which distribution of Linux you are running.
Now, follow the "Setting up to Build" steps on this page. Here is the fix: Before proceeding with the "Building" steps, run, "gedit CMakeLists.txt" in the terminal. Find the following block of code:
Change it to:
This fix removes the OPENAL_FOUND condition and includes OpenAL in your build regardless. On my system, this script failed to determine that I had OpenAL and its development libraries, hence the need for me to apply this fix and recompile and reinstall Dolphin.
Finally, close gedit, and follow the rest of the instructions on the aforementioned page. When you run Dolphin, check the DSP settings, and look under "Backend Settings." You should have an "OpenAL" backend option, and it should provide working audio emulation when you emulate a game.
This post could also be considered a bug report because the "FindOpenAL" function called by the script does not work properly.
As I discovered when I had the need to post this thread, it is useful for a user of Dolphin to have as many audio backend options as possible to ensure that at least one of them works well for him/her. Had I not found the need for this fix, applied it, and recompiled and reinstalled Dolphin, I would not have the OpenAL audio backend option, even though I have both libopenal1 and libopenal-dev installed from my repositories.
First, check your repositories to see whether libopenal1 and libopenal-dev are installed. If not, install them. If they are not even in your repositories, Google them, and get them installed. The exact procedure for these steps depends on which distribution of Linux you are running.
Now, follow the "Setting up to Build" steps on this page. Here is the fix: Before proceeding with the "Building" steps, run, "gedit CMakeLists.txt" in the terminal. Find the following block of code:
Quote:include(FindOpenAL OPTIONAL)
if(OPENAL_FOUND)
add_definitions(-DHAVE_OPENAL=1)
include_directories(${OPENAL_INCLUDE_DIR})
message("OpenAL found, enabling OpenAL sound backend")
else()
add_definitions(-DHAVE_OPENAL=0)
message("OpenAL NOT found, disabling OpenAL sound backend")
endif(OPENAL_FOUND)
Change it to:
Quote:include(FindOpenAL OPTIONAL)
add_definitions(-DHAVE_OPENAL=1)
include_directories(${OPENAL_INCLUDE_DIR})
message("Enabling OpenAL sound backend")
This fix removes the OPENAL_FOUND condition and includes OpenAL in your build regardless. On my system, this script failed to determine that I had OpenAL and its development libraries, hence the need for me to apply this fix and recompile and reinstall Dolphin.
Finally, close gedit, and follow the rest of the instructions on the aforementioned page. When you run Dolphin, check the DSP settings, and look under "Backend Settings." You should have an "OpenAL" backend option, and it should provide working audio emulation when you emulate a game.
This post could also be considered a bug report because the "FindOpenAL" function called by the script does not work properly.