Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 26, 2003
1 parent e6f9cf3 commit f006fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions load_ogg.c
Expand Up @@ -43,7 +43,7 @@ static size_t sdl_read_func(void *ptr, size_t size, size_t nmemb, void *datasour

static int sdl_seek_func(void *datasource, ogg_int64_t offset, int whence)
{
return SDL_RWseek((SDL_RWops*)datasource, offset, whence);
return SDL_RWseek((SDL_RWops*)datasource, (int)offset, whence);
}

static int sdl_close_func_freesrc(void *datasource)
Expand Down Expand Up @@ -105,7 +105,7 @@ SDL_AudioSpec *Mix_LoadOGG_RW (SDL_RWops *src, int freesrc,
spec->freq = info->rate;
spec->samples = 4096; /* buffer size */

samples = ov_pcm_total(&vf, -1);
samples = (long)ov_pcm_total(&vf, -1);

*audio_len = spec->size = samples * spec->channels * 2;
*audio_buf = malloc(*audio_len);
Expand Down

0 comments on commit f006fc2

Please sign in to comment.