Skip to content

Commit

Permalink
Remove detection of unused PulseAudio audio libary. (#421)
Browse files Browse the repository at this point in the history
* Remove detection of unused PulseAudio audio libary.

* Remove unused PulseAudio backend refecences from the code completely.
  • Loading branch information
vanfanel authored Feb 6, 2024
1 parent d42849d commit ef0c348
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_libraries(libultraship PRIVATE ${OSX_FOUNDATION} ${OSX_AVFOUNDATION} ${METAL} ${QUARTZCORE} ${CMAKE_DL_LIBS})
endif()

if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
find_package(PulseAudio)
target_link_libraries(libultraship PRIVATE ${PULSEAUDIO_LIBRARY})
endif()

if (USE_OPENGLES)
if (CMAKE_SYSTEM_NAME STREQUAL "Android")
find_library(OPENGLES_LIBRARY GLESv3)
Expand Down
3 changes: 0 additions & 3 deletions src/audio/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ void Audio::Init() {
mAvailableAudioBackends = std::make_shared<std::vector<AudioBackend>>();
#ifdef _WIN32
mAvailableAudioBackends->push_back(AudioBackend::WASAPI);
#endif
#ifdef __linux
mAvailableAudioBackends->push_back(AudioBackend::PULSE);
#endif
mAvailableAudioBackends->push_back(AudioBackend::SDL);

Expand Down
2 changes: 1 addition & 1 deletion src/audio/Audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "audio/AudioPlayer.h"

namespace LUS {
enum class AudioBackend { WASAPI, PULSE, SDL };
enum class AudioBackend { WASAPI, SDL };

class Audio {
public:
Expand Down

0 comments on commit ef0c348

Please sign in to comment.