mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[audio] Fix some minor issues
Just little niggles I spotted while sorting out cue points.
This commit is contained in:
parent
78a0075be1
commit
5cfbafc176
2 changed files with 6 additions and 6 deletions
|
@ -68,8 +68,6 @@ struct sfx_s
|
||||||
};
|
};
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
struct model_s;
|
|
||||||
|
|
||||||
/** \defgroup sound_init Initialization functions
|
/** \defgroup sound_init Initialization functions
|
||||||
\ingroup sound
|
\ingroup sound
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -134,7 +134,7 @@ SND_StreamRelease (sfx_t *sfx)
|
||||||
wavinfo_t *
|
wavinfo_t *
|
||||||
SND_CacheWavinfo (sfx_t *sfx)
|
SND_CacheWavinfo (sfx_t *sfx)
|
||||||
{
|
{
|
||||||
return &sfx->data.stream->wavinfo;
|
return &sfx->data.block->wavinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
wavinfo_t *
|
wavinfo_t *
|
||||||
|
@ -161,10 +161,12 @@ read_samples (sfxbuffer_t *buffer, int count)
|
||||||
if ((c = stream->read (stream, data, count)) != count)
|
if ((c = stream->read (stream, data, count)) != count)
|
||||||
Sys_Printf ("%s nr %d %d\n", sfx->name, count, c);
|
Sys_Printf ("%s nr %d %d\n", sfx->name, count, c);
|
||||||
|
|
||||||
|
if (c > 0) {
|
||||||
buffer->head += count;
|
buffer->head += count;
|
||||||
if (buffer->head >= buffer->length)
|
if (buffer->head >= buffer->length)
|
||||||
buffer->head -= buffer->length;
|
buffer->head -= buffer->length;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue