Skip to content

Need some clarification about closing files when reading them for audio streams #1895

Answered by hajimehoshi
eliasdaler asked this question in Q&A
Discussion options

You must be logged in to vote

So, am I right to assume that if I use os.File for my wav sound, I still need to close it manually after the player is closed?

Right. Ebiten doesn't care the audio source's closing state, so it's your responsibility to close the source.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eliasdaler
Comment options

Answer selected by eliasdaler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants