mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
sndfile: rename MEMFILE stream->fs
This commit is contained in:
parent
fedc40b45e
commit
e43aa4b836
@ -234,25 +234,25 @@ static void ParseFlacFile(loop_metadata_t *metadata, MEMFILE *fs)
|
||||
|
||||
static sf_count_t sfvio_get_filelen(void *user_data)
|
||||
{
|
||||
MEMFILE *stream = user_data;
|
||||
MEMFILE *fs = user_data;
|
||||
long pos;
|
||||
sf_count_t len;
|
||||
|
||||
pos = mem_ftell(stream);
|
||||
mem_fseek(stream, 0, MEM_SEEK_END);
|
||||
len = mem_ftell(stream);
|
||||
mem_fseek(stream, pos, MEM_SEEK_SET);
|
||||
pos = mem_ftell(fs);
|
||||
mem_fseek(fs, 0, MEM_SEEK_END);
|
||||
len = mem_ftell(fs);
|
||||
mem_fseek(fs, pos, MEM_SEEK_SET);
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
static sf_count_t sfvio_seek(sf_count_t offset, int whence, void *user_data)
|
||||
{
|
||||
MEMFILE *stream = user_data;
|
||||
MEMFILE *fs = user_data;
|
||||
|
||||
mem_fseek(stream, offset, whence);
|
||||
mem_fseek(fs, offset, whence);
|
||||
|
||||
return mem_ftell(stream);
|
||||
return mem_ftell(fs);
|
||||
}
|
||||
|
||||
static sf_count_t sfvio_read(void *ptr, sf_count_t count, void *user_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user