mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 19:38:06 -04:00
missed static
, cosmetic changes
This commit is contained in:
parent
efb5867399
commit
11c652b67e
@ -24,8 +24,8 @@ static ModPlugFile *file;
|
||||
|
||||
static ModPlug_Settings settings;
|
||||
|
||||
boolean I_MOD_OpenStream(void *data, ALsizei size, ALenum *format,
|
||||
ALsizei *freq, ALsizei *frame_size)
|
||||
static boolean I_MOD_OpenStream(void *data, ALsizei size, ALenum *format,
|
||||
ALsizei *freq, ALsizei *frame_size)
|
||||
{
|
||||
ModPlug_GetSettings(&settings);
|
||||
settings.mFlags = MODPLUG_ENABLE_OVERSAMPLING;
|
||||
|
@ -434,7 +434,6 @@ static boolean OpenFile(sndfile_t *file, void *data, sf_count_t size)
|
||||
|
||||
if (!file->sndfile)
|
||||
{
|
||||
fprintf(stderr, "sf_open_virtual: %s\n", sf_strerror(file->sndfile));
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -562,9 +561,8 @@ static sndfile_t stream;
|
||||
|
||||
static loop_metadata_t loop;
|
||||
|
||||
|
||||
boolean I_SND_OpenStream(void *data, ALsizei size, ALenum *format,
|
||||
ALsizei *freq, ALsizei *frame_size)
|
||||
static boolean I_SND_OpenStream(void *data, ALsizei size, ALenum *format,
|
||||
ALsizei *freq, ALsizei *frame_size)
|
||||
{
|
||||
MEMFILE *fs;
|
||||
|
||||
@ -598,14 +596,14 @@ boolean I_SND_OpenStream(void *data, ALsizei size, ALenum *format,
|
||||
return true;
|
||||
}
|
||||
|
||||
void I_SND_RestartStream(void)
|
||||
static void I_SND_RestartStream(void)
|
||||
{
|
||||
sf_seek(stream.sndfile, loop.start_time, SEEK_SET);
|
||||
}
|
||||
|
||||
uint32_t I_SND_FillStream(byte *data, uint32_t frames)
|
||||
static uint32_t I_SND_FillStream(byte *data, uint32_t frames)
|
||||
{
|
||||
sf_count_t num_frames = 0;
|
||||
sf_count_t filled = 0;
|
||||
boolean restart = false;
|
||||
|
||||
if (loop.end_time)
|
||||
@ -621,11 +619,11 @@ uint32_t I_SND_FillStream(byte *data, uint32_t frames)
|
||||
|
||||
if (stream.sample_format == Int16)
|
||||
{
|
||||
num_frames = sf_readf_short(stream.sndfile, (short *)data, frames);
|
||||
filled = sf_readf_short(stream.sndfile, (short *)data, frames);
|
||||
}
|
||||
else if (stream.sample_format == Float)
|
||||
{
|
||||
num_frames = sf_readf_float(stream.sndfile, (float *)data, frames);
|
||||
filled = sf_readf_float(stream.sndfile, (float *)data, frames);
|
||||
}
|
||||
|
||||
if (restart)
|
||||
@ -633,10 +631,10 @@ uint32_t I_SND_FillStream(byte *data, uint32_t frames)
|
||||
sf_seek(stream.sndfile, loop.start_time, SEEK_SET);
|
||||
}
|
||||
|
||||
return num_frames;
|
||||
return filled;
|
||||
}
|
||||
|
||||
void I_SND_CloseStream(void)
|
||||
static void I_SND_CloseStream(void)
|
||||
{
|
||||
CloseFile(&stream);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user