Skip to content

Add catch clause for UnsupportedAudioFileException and fix LineUnavailableExceptions #371

Merged
itdelatrisu merged 2 commits intoitdelatrisu:masterfrom
Lenidevelaire:audio-loader-refix
Mar 10, 2018
Merged

Add catch clause for UnsupportedAudioFileException and fix LineUnavailableExceptions #371
itdelatrisu merged 2 commits intoitdelatrisu:masterfrom
Lenidevelaire:audio-loader-refix

Conversation

@Lyonlancer5
Copy link
Copy Markdown
Contributor

Overview

Needs more testing on other setups.
Adds more details with issues regarding sound file loading and possibly fix the Linux side of LineUnavailableExceptions.
Has been tested on Windows (Windows 10 x64) and Linux (Mint Cinnamon 18.3 x64) with no ill effects.

Changes:

  • Don't open a line with the same format twice (as found in this StackOverflow post)

  • Add an additional catch clause for UnsupportedAudioFileException to better distinguish audio file-specific errors (such as corrupted files) and more general errors (such as non-present decoders for an audio type)

May fix Linux audio issues due to opening multiple lines with the same
format.
Distinguishes between specific audio errors (such as unreadable audio
files) and more general errors (such as unavailable decoders for the
audio type).
@itdelatrisu
Copy link
Copy Markdown
Owner

Thanks! Will merge since it seems harmless enough.

@itdelatrisu itdelatrisu merged commit 2f7a97f into itdelatrisu:master Mar 10, 2018
@Lyonlancer5 Lyonlancer5 deleted the audio-loader-refix branch December 24, 2018 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants