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
12533fd7
Commit
12533fd7
authored
16 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Work around portaudio 1.8/1.9 incompatabilities regarding PaTimestamp and
PortAudioCallback types.
parent
7e2ff702
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/xpbeep.c
+11
-7
11 additions, 7 deletions
src/xpdev/xpbeep.c
with
11 additions
and
7 deletions
src/xpdev/xpbeep.c
+
11
−
7
View file @
12533fd7
...
...
@@ -49,7 +49,7 @@
/* xpdev headers */
#ifdef WITH_PORTAUDIO
#include
"
portaudio.h
"
#include
<
portaudio.h
>
#endif
#ifdef WITH_SDL_AUDIO
...
...
@@ -95,9 +95,13 @@ static int portaudio_buf_len=0;
static
int
portaudio_buf_pos
=
0
;
static
const
unsigned
char
*
pawave
;
static
int
portaudio_initialized
=
FALSE
;
#ifndef PaStream // Detect version... defined for 1.8 and not for 1.9
#define PortAudioCallback void
#define PaTimestamp PaTime
#endif
struct
portaudio_api_struct
{
PaError
(
*
init
)(
void
);
PaError
(
*
open
)(
P
ortAudio
Stream
**
stream
,
PaError
(
*
open
)(
P
a
Stream
**
stream
,
int
numInputChannels
,
int
numOutputChannels
,
PaSampleFormat
sampleFormat
,
...
...
@@ -106,11 +110,11 @@ struct portaudio_api_struct {
unsigned
long
numberOfBuffers
,
PortAudioCallback
*
callback
,
void
*
userData
);
PaError
(
*
close
)(
P
ortAudio
Stream
*
);
PaError
(
*
start
)(
P
ortAudio
Stream
*
stream
);
PaError
(
*
stop
)(
P
ortAudio
Stream
*
stream
);
PaError
(
*
active
)(
P
ortAudio
Stream
*
stream
);
PaError
(
*
write
)(
P
ortAudio
Stream
*
stream
,
const
void
*
buf
,
unsigned
long
frames
);
PaError
(
*
close
)(
P
a
Stream
*
);
PaError
(
*
start
)(
P
a
Stream
*
stream
);
PaError
(
*
stop
)(
P
a
Stream
*
stream
);
PaError
(
*
active
)(
P
a
Stream
*
stream
);
PaError
(
*
write
)(
P
a
Stream
*
stream
,
const
void
*
buf
,
unsigned
long
frames
);
int
(
*
version
)(
void
);
int
ver
;
};
...
...
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