From adc58b651d5fd863590ee8ee0b27e6e1d06c72f2 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 8 Oct 2018 10:05:02 +0300 Subject: [PATCH] music_opus.c: fix a typo. (found with -Wall in CFLAGS). also update changelog to mention opus support. --- CHANGES.txt | 2 ++ music_opus.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 8ca13383..cbae4e0c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,8 @@ 2.0.3: Ozkan Sezer - Sun, 07 Oct 2018 08:50:02 * Fixed mp3 mad decoder to skip tags, which otherwise would lead to crashes +Ozkan Sezer - Fri, 15 Jun 2018 05:32:56 + * Added support for Opus music playback using opusfile library Sam Lantinga - Thu, Mar 1, 2018 9:06:58 AM * Fixed regression where Mix_Init() would return 0 for available music formats diff --git a/music_opus.c b/music_opus.c index d6c1cfdc..9e4049c8 100644 --- a/music_opus.c +++ b/music_opus.c @@ -140,7 +140,7 @@ static int sdl_read_func(void *datasource, unsigned char *ptr, int size) return (int)SDL_RWread((SDL_RWops*)datasource, ptr, 1, size); } -static int sdl_seek_func(void *datasource, ogg_int64_t offset, int whence) +static int sdl_seek_func(void *datasource, opus_int64 offset, int whence) { return (SDL_RWseek((SDL_RWops*)datasource, offset, whence) < 0)? -1 : 0; }