mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
* Ogg codec fix regarding ogg files in pk3s (Tr3b)
This commit is contained in:
parent
e31156e586
commit
b5a220359b
1 changed files with 7 additions and 3 deletions
|
@ -198,6 +198,8 @@ int S_OGG_Callback_close(void *datasource)
|
||||||
// ftell() replacement
|
// ftell() replacement
|
||||||
long S_OGG_Callback_tell(void *datasource)
|
long S_OGG_Callback_tell(void *datasource)
|
||||||
{
|
{
|
||||||
|
snd_stream_t *stream;
|
||||||
|
|
||||||
// check if input is valid
|
// check if input is valid
|
||||||
if(!datasource)
|
if(!datasource)
|
||||||
{
|
{
|
||||||
|
@ -205,8 +207,10 @@ long S_OGG_Callback_tell(void *datasource)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we keep track of the file position in stream->pos
|
// snd_stream_t in the generic pointer
|
||||||
return (long) (((snd_stream_t *) datasource) -> pos);
|
stream = (snd_stream_t *) datasource;
|
||||||
|
|
||||||
|
return (long) FS_FTell(stream->file);
|
||||||
}
|
}
|
||||||
|
|
||||||
// the callback structure
|
// the callback structure
|
||||||
|
|
Loading…
Reference in a new issue