Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
761771ad
Commit
761771ad
authored
Sep 07, 2009
by
Serge Ziryukin
Committed by
Max Kellermann
Sep 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/openal: support OpenAL plugin on Mac OS X
parent
f5f4a9da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
configure.ac
configure.ac
+10
-0
openal_plugin.c
src/output/openal_plugin.c
+6
-0
No files found.
configure.ac
View file @
761771ad
...
...
@@ -791,9 +791,19 @@ fi
AM_CONDITIONAL(HAVE_OSS, test x$enable_oss = xyes)
if test x$enable_openal = xyes; then
if test x$enable_osx = xyes; then
AC_CHECK_HEADERS([OpenAL/al.h OpenAL/alc.h], [], [enable_openal=no])
if test x$enable_openal = xyes; then
OPENAL_LIBS="-framework OpenAL"
AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support])
else
AC_MSG_WARN(OpenAL headers not found -- disabling OpenAL support)
fi
else
PKG_CHECK_MODULES([OPENAL], [openal],
AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support]),
enable_openal=no)
fi
fi
if test x$enable_openal = xyes; then
...
...
src/output/openal_plugin.c
View file @
761771ad
...
...
@@ -19,11 +19,17 @@
#include "../output_api.h"
#include "../timer.h"
#include "config.h"
#include <glib.h>
#ifndef HAVE_OSX
#include <AL/al.h>
#include <AL/alc.h>
#else
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "openal"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment