winejack.drv: Make some functions static.
This commit is contained in:
parent
e1ca6799fa
commit
0c615ef274
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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,
|
||||||
/* 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,
|
||||||
/* 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,
|
||||||
|
|
||||||
|
|
||||||
/* 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)
|
||||||
/* 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)
|
||||||
* 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)
|
||||||
* 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)
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* 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)
|
||||||
* 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)
|
||||||
* 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
|
||||||
*/
|
*/
|
||||||
/* 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;
|
||||||
|
|
Loading…
Reference in New Issue