Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
4506d0fa
Commit
4506d0fa
authored
4 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix previous commit.
parent
e8472670
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/xpdev/Common.gmake
+0
-7
0 additions, 7 deletions
src/xpdev/Common.gmake
src/xpdev/GNUmakefile
+7
-0
7 additions, 0 deletions
src/xpdev/GNUmakefile
src/xpdev/xpbeep.c
+6
-5
6 additions, 5 deletions
src/xpdev/xpbeep.c
with
13 additions
and
12 deletions
src/xpdev/Common.gmake
+
0
−
7
View file @
4506d0fa
...
...
@@ -124,13 +124,6 @@ ifdef USE_SDL_AUDIO
endif
endif
ifndef NO_PULSEAUDIO
ifeq ($(shell command -v pkg-config > /dev/null && pkg-config --exists libpulse && echo 'YES' ; fi),YES)
XPDEV_CFLAGS += -DWITH_PULSEAUDIO
XPDEV_MT_CFLAGS += -DWITH_PULSEAUDIO
endif
endif
ifdef STATIC
STATIC_SDL := true
endif
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/GNUmakefile
+
7
−
0
View file @
4506d0fa
...
...
@@ -8,6 +8,13 @@ ifneq ($(os),win32)
MTOBJS
+=
$(
MTOBJODIR
)$(
DIRSEP
)
xpevent
$(
OFILE
)
endif
ifndef
NO_PULSEAUDIO
ifeq
($(shell command -v pkg-config > /dev/null && pkg-config --exists libpulse && echo 'YES'),YES)
CFLAGS
+=
-DWITH_PULSEAUDIO
`
pkg-config libpulse
--cflags
`
MT_CFLAGS
+=
-DWITH_PULSEAUDIO
`
pkg-config libpulse
--cflags
`
endif
endif
CFLAGS
+=
-DSOUNDCARD_H_IN
=
$(
shell
if
[
-f
/usr/include/sys/soundcard.h
]
;
then
echo
1
;
elif
[
-f
/usr/include/soundcard.h
]
;
then
echo
2
;
elif
[
-f
/usr/include/linux/soundcard.h
]
;
then
echo
3
;
else
echo
0
;
fi
)
-I
.
$(
XPDEV_CFLAGS
)
ifndef
WITHOUT_ALSA_SOUND
ifeq
($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/xpbeep.c
+
6
−
5
View file @
4506d0fa
...
...
@@ -110,12 +110,13 @@ static int handle_rc;
#ifdef WITH_PULSEAUDIO
struct
pulseaudio_api_struct
{
pa_simple
*
(
*
simple_new
)(
const
char
*
server
,
const
char
*
name
,
pa_stream_direction_t
dir
,
const
char
*
dev
,
const
char
*
stream_name
,
const
pa_sample_spec
*
ss
,
const
pa_channel_map
*
map
,
const
pa_buffer_attr
*
attr
,
int
*
error
);
int
(
*
simple_write
)(
simple
*
s
,
const
void
*
data
,
size_t
bytes
,
int
*
error
);
int
(
*
simple_write
)(
pa_
simple
*
s
,
const
void
*
data
,
size_t
bytes
,
int
*
error
);
int
(
*
simple_drain
)(
pa_simple
*
s
,
int
*
error
);
void
(
*
simple_free
)(
pa_simple
*
s
);
};
struct
pulseaudio_api_struct
pu_api
=
NULL
;
struct
pulseaudio_api_struct
*
pu_api
=
NULL
;
static
pa_simple
*
pu_handle
;
static
int
pulseaudio_initialized
=
FALSE
;
#endif
#ifdef WITH_PORTAUDIO
...
...
@@ -394,7 +395,7 @@ DLLCALL xptone_open_locked(void)
||
((
pu_api
->
simple_new
=
xp_dlsym
(
dl
,
pa_simple_new
))
==
NULL
)
||
((
pu_api
->
simple_write
=
xp_dlsym
(
dl
,
pa_simple_write
))
==
NULL
)
||
((
pu_api
->
simple_drain
=
xp_dlsym
(
dl
,
pa_simple_drain
))
==
NULL
)
||
((
pu_api
->
simple_fre
=
xp_dlsym
(
dl
,
pa_simple_free
))
==
NULL
)
||
((
pu_api
->
simple_fre
e
=
xp_dlsym
(
dl
,
pa_simple_free
))
==
NULL
)
)
{
if
(
dl
)
xp_dlclose
(
dl
);
...
...
@@ -661,9 +662,9 @@ xptone_complete_locked(void)
}
#ifdef WITH_PULSEAUDIO
else
if
(
handle
->
type
==
SOUND_DEVICE_PULSEAUDIO
)
{
else
if
(
handle
_
type
==
SOUND_DEVICE_PULSEAUDIO
)
{
int
err
;
pu_api
.
simple_drain
(
pu_handle
,
&
err
);
pu_api
->
simple_drain
(
pu_handle
,
&
err
);
}
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment