Skip to content

Commit

Permalink
clear finish_callback_user_data
Browse files Browse the repository at this point in the history
  • Loading branch information
walkawayy committed Aug 3, 2023
1 parent 309a710 commit e7f5afc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/specific/s_audio_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ static bool S_Audio_StreamSoundInitialiseFromPath(
stream->volume = 1.0f;
stream->timestamp = 0;
stream->finish_callback = NULL;
stream->finish_callback_user_data = NULL;

stream->sdl.stream = SDL_NewAudioStream(
sdl_format, sdl_channels, sdl_sample_rate, AUDIO_WORKING_FORMAT,
Expand Down Expand Up @@ -283,6 +284,7 @@ static void S_Audio_StreamSoundClear(AUDIO_STREAM_SOUND *stream)
stream->timestamp = 0;
stream->sdl.stream = NULL;
stream->finish_callback = NULL;
stream->finish_callback_user_data = NULL;
}

void S_Audio_StreamSoundInit(void)
Expand Down

0 comments on commit e7f5afc

Please sign in to comment.