UwU
This commit is contained in:
parent
faaf7b5ed5
commit
b2221612b4
|
|
@ -27,23 +27,22 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
static size_t vfRead(void *ptr, size_t size, void *ops){
|
static size_t vfRead(void* ptr, size_t size, void* ops){
|
||||||
//size_t SDL_ReadIO(SDL_IOStream *context, void *ptr, size_t size);
|
//size_t SDL_ReadIO(SDL_IOStream *context, void *ptr, size_t size);
|
||||||
return SDL_ReadIO(static_cast<SDL_IOStream*>(ops), ptr, size);
|
return SDL_ReadIO(static_cast<SDL_IOStream*>(ops), ptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vfSeek(void *ops, ogg_int64_t offset, int whence)
|
static int vfSeek(void* ops, ogg_int64_t offset, SDL_IOWhence whence)
|
||||||
{
|
{
|
||||||
return SDL_SeekIO(static_cast<SDL_IOStream*>(ops), offset, whence);
|
return SDL_SeekIO(static_cast<SDL_IOStream*>(ops), offset, whence);
|
||||||
}
|
}
|
||||||
|
|
||||||
static long vfTell(void *ops)
|
static long vfTell(void* ops)
|
||||||
{
|
{
|
||||||
return SDL_TellIO(static_cast<SDL_IOStream*>(ops));
|
return SDL_TellIO(static_cast<SDL_IOStream*>(ops));
|
||||||
}
|
}
|
||||||
|
|
||||||
static ov_callbacks OvCallbacks =
|
static ov_callbacks OvCallbacks ={
|
||||||
{
|
|
||||||
vfRead,
|
vfRead,
|
||||||
vfSeek,
|
vfSeek,
|
||||||
0,
|
0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue