Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2b5180d

Browse files
committedFeb 21, 2025·
SDL_sound_vorbis.c: update after stb_vorbis.h sync with SDL_mixer.
1 parent f7fc5aa commit 2b5180d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/SDL_sound_vorbis.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ static void VORBIS_quit(void)
106106
static int VORBIS_open(Sound_Sample *sample, const char *ext)
107107
{
108108
Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
109-
SDL_IOStream *rw = internal->rw;
109+
SDL_IOStream *src = internal->rw;
110110
int err = 0;
111-
stb_vorbis *stb = stb_vorbis_open_rwops(rw, 0, &err, NULL);
111+
stb_vorbis *stb = stb_vorbis_open_io(src, 0, &err, NULL);
112112
unsigned int num_frames;
113113

114114
BAIL_IF_MACRO(!stb, vorbis_error_string(err), 0);

0 commit comments

Comments
 (0)
Please sign in to comment.