Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
0c615ef2
Commit
0c615ef2
authored
Dec 13, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winejack.drv: Make some functions static.
parent
e1ca6799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
audio.c
dlls/winejack.drv/audio.c
+12
-12
No files found.
dlls/winejack.drv/audio.c
View file @
0c615ef2
...
@@ -270,7 +270,7 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
...
@@ -270,7 +270,7 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
/* Alsaplayer function that applies volume changes to a buffer */
/* Alsaplayer function that applies volume changes to a buffer */
/* (C) Andy Lo A Foe */
/* (C) Andy Lo A Foe */
/* Length is in terms of 32 bit samples */
/* Length is in terms of 32 bit samples */
void
volume_effect32
(
void
*
buffer
,
int
length
,
int
left
,
int
right
)
static
void
volume_effect32
(
void
*
buffer
,
int
length
,
int
left
,
int
right
)
{
{
short
*
data
=
(
short
*
)
buffer
;
short
*
data
=
(
short
*
)
buffer
;
int
i
,
v
;
int
i
,
v
;
...
@@ -286,7 +286,7 @@ void volume_effect32(void *buffer, int length, int left, int right)
...
@@ -286,7 +286,7 @@ void volume_effect32(void *buffer, int length, int left, int right)
}
}
/* move 16 bit mono/stereo to 16 bit stereo */
/* move 16 bit mono/stereo to 16 bit stereo */
void
sample_move_d16_d16
(
short
*
dst
,
short
*
src
,
static
void
sample_move_d16_d16
(
short
*
dst
,
short
*
src
,
unsigned
long
nsamples
,
int
nChannels
)
unsigned
long
nsamples
,
int
nChannels
)
{
{
while
(
nsamples
--
)
while
(
nsamples
--
)
...
@@ -308,7 +308,7 @@ void sample_move_d16_d16(short *dst, short *src,
...
@@ -308,7 +308,7 @@ void sample_move_d16_d16(short *dst, short *src,
/* channels to a buffer that will hold a single channel stream */
/* channels to a buffer that will hold a single channel stream */
/* nsamples is in terms of 16bit samples */
/* nsamples is in terms of 16bit samples */
/* src_skip is in terms of 16bit samples */
/* src_skip is in terms of 16bit samples */
void
sample_move_d16_s16
(
sample_t
*
dst
,
short
*
src
,
static
void
sample_move_d16_s16
(
sample_t
*
dst
,
short
*
src
,
unsigned
long
nsamples
,
unsigned
long
src_skip
)
unsigned
long
nsamples
,
unsigned
long
src_skip
)
{
{
/* ALERT: signed sign-extension portability !!! */
/* ALERT: signed sign-extension portability !!! */
...
@@ -325,7 +325,7 @@ void sample_move_d16_s16 (sample_t *dst, short *src,
...
@@ -325,7 +325,7 @@ void sample_move_d16_s16 (sample_t *dst, short *src,
/* to stereo data with alternating left/right channels */
/* to stereo data with alternating left/right channels */
/* nsamples is in terms of float samples */
/* nsamples is in terms of float samples */
/* dst_skip is in terms of 16bit samples */
/* dst_skip is in terms of 16bit samples */
void
sample_move_s16_d16
(
short
*
dst
,
sample_t
*
src
,
static
void
sample_move_s16_d16
(
short
*
dst
,
sample_t
*
src
,
unsigned
long
nsamples
,
unsigned
long
dst_skip
)
unsigned
long
nsamples
,
unsigned
long
dst_skip
)
{
{
/* ALERT: signed sign-extension portability !!! */
/* ALERT: signed sign-extension portability !!! */
...
@@ -340,7 +340,7 @@ void sample_move_s16_d16 (short *dst, sample_t *src,
...
@@ -340,7 +340,7 @@ void sample_move_s16_d16 (short *dst, sample_t *src,
/* fill dst buffer with nsamples worth of silence */
/* fill dst buffer with nsamples worth of silence */
void
sample_silence_dS
(
sample_t
*
dst
,
unsigned
long
nsamples
)
static
void
sample_silence_dS
(
sample_t
*
dst
,
unsigned
long
nsamples
)
{
{
/* ALERT: signed sign-extension portability !!! */
/* ALERT: signed sign-extension portability !!! */
while
(
nsamples
--
)
while
(
nsamples
--
)
...
@@ -356,7 +356,7 @@ void sample_silence_dS (sample_t *dst, unsigned long nsamples)
...
@@ -356,7 +356,7 @@ void sample_silence_dS (sample_t *dst, unsigned long nsamples)
/* everytime the jack server wants something from us it calls this
/* everytime the jack server wants something from us it calls this
function, so we either deliver it some sound to play or deliver it nothing
function, so we either deliver it some sound to play or deliver it nothing
to play */
to play */
int
JACK_callback_wwo
(
nframes_t
nframes
,
void
*
arg
)
static
int
JACK_callback_wwo
(
nframes_t
nframes
,
void
*
arg
)
{
{
sample_t
*
out_l
;
sample_t
*
out_l
;
sample_t
*
out_r
;
sample_t
*
out_r
;
...
@@ -492,7 +492,7 @@ int JACK_callback_wwo (nframes_t nframes, void *arg)
...
@@ -492,7 +492,7 @@ int JACK_callback_wwo (nframes_t nframes, void *arg)
* Called whenever the jack server changes the max number
* Called whenever the jack server changes the max number
* of frames passed to JACK_callback
* of frames passed to JACK_callback
*/
*/
int
JACK_bufsize_wwo
(
nframes_t
nframes
,
void
*
arg
)
static
int
JACK_bufsize_wwo
(
nframes_t
nframes
,
void
*
arg
)
{
{
WINE_WAVEOUT
*
wwo
=
(
WINE_WAVEOUT
*
)
arg
;
WINE_WAVEOUT
*
wwo
=
(
WINE_WAVEOUT
*
)
arg
;
DWORD
buffer_required
;
DWORD
buffer_required
;
...
@@ -540,7 +540,7 @@ int JACK_bufsize_wwo (nframes_t nframes, void *arg)
...
@@ -540,7 +540,7 @@ int JACK_bufsize_wwo (nframes_t nframes, void *arg)
* Called whenever the jack server changes the max number
* Called whenever the jack server changes the max number
* of frames passed to JACK_callback
* of frames passed to JACK_callback
*/
*/
int
JACK_bufsize_wwi
(
nframes_t
nframes
,
void
*
arg
)
static
int
JACK_bufsize_wwi
(
nframes_t
nframes
,
void
*
arg
)
{
{
TRACE
(
"the maximum buffer size is now %u frames
\n
"
,
nframes
);
TRACE
(
"the maximum buffer size is now %u frames
\n
"
,
nframes
);
return
0
;
return
0
;
...
@@ -549,7 +549,7 @@ int JACK_bufsize_wwi (nframes_t nframes, void *arg)
...
@@ -549,7 +549,7 @@ int JACK_bufsize_wwi (nframes_t nframes, void *arg)
/******************************************************************
/******************************************************************
* JACK_srate
* JACK_srate
*/
*/
int
JACK_srate
(
nframes_t
nframes
,
void
*
arg
)
static
int
JACK_srate
(
nframes_t
nframes
,
void
*
arg
)
{
{
TRACE
(
"the sample rate is now %u/sec
\n
"
,
nframes
);
TRACE
(
"the sample rate is now %u/sec
\n
"
,
nframes
);
return
0
;
return
0
;
...
@@ -560,7 +560,7 @@ int JACK_srate (nframes_t nframes, void *arg)
...
@@ -560,7 +560,7 @@ int JACK_srate (nframes_t nframes, void *arg)
* JACK_shutdown_wwo
* JACK_shutdown_wwo
*/
*/
/* if this is called then jack shut down... handle this appropriately */
/* if this is called then jack shut down... handle this appropriately */
void
JACK_shutdown_wwo
(
void
*
arg
)
static
void
JACK_shutdown_wwo
(
void
*
arg
)
{
{
WINE_WAVEOUT
*
wwo
=
(
WINE_WAVEOUT
*
)
arg
;
WINE_WAVEOUT
*
wwo
=
(
WINE_WAVEOUT
*
)
arg
;
...
@@ -580,7 +580,7 @@ void JACK_shutdown_wwo(void* arg)
...
@@ -580,7 +580,7 @@ void JACK_shutdown_wwo(void* arg)
* JACK_shutdown_wwi
* JACK_shutdown_wwi
*/
*/
/* if this is called then jack shut down... handle this appropriately */
/* if this is called then jack shut down... handle this appropriately */
void
JACK_shutdown_wwi
(
void
*
arg
)
static
void
JACK_shutdown_wwi
(
void
*
arg
)
{
{
WINE_WAVEIN
*
wwi
=
(
WINE_WAVEIN
*
)
arg
;
WINE_WAVEIN
*
wwi
=
(
WINE_WAVEIN
*
)
arg
;
...
@@ -1779,7 +1779,7 @@ static DWORD widNotifyClient(WINE_WAVEIN* wwi, WORD wMsg, DWORD dwParam1, DWORD
...
@@ -1779,7 +1779,7 @@ static DWORD widNotifyClient(WINE_WAVEIN* wwi, WORD wMsg, DWORD dwParam1, DWORD
*/
*/
/* everytime the jack server wants something from us it calls this
/* everytime the jack server wants something from us it calls this
function */
function */
int
JACK_callback_wwi
(
nframes_t
nframes
,
void
*
arg
)
static
int
JACK_callback_wwi
(
nframes_t
nframes
,
void
*
arg
)
{
{
sample_t
*
in_l
;
sample_t
*
in_l
;
sample_t
*
in_r
=
0
;
sample_t
*
in_r
=
0
;
...
...
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