Update asap to 6.0.3

This commit is contained in:
Piotr Fusik 2024-04-22 16:43:03 +02:00
parent 71b6bb07c3
commit 63df4454e2
4 changed files with 6 additions and 6 deletions

View File

@ -1,2 +1,2 @@
The files "asap.jar" and "asap-6.0.1-java-src.zip" were provided by Fox.
The files "asap.jar" and "asap-6.0.3-java-src.zip" were provided by Fox.
The source is not included in the build.properties to keep the size at the minimum.

View File

@ -123,7 +123,7 @@ public final class ASAPPlayer extends SoundPlayer {
try {
asap.load(fileName, module, moduleLen);
asapMusicRoutine = new ASAPMusicRoutine(fileName, module, moduleLen);
} catch (Exception ex) {
} catch (ASAPFormatException|ASAPConversionException ex) {
// ERROR: Cannot load sound file '{0}'. {1}
IStatus status = new Status(IStatus.ERROR, SoundPlugin.ID,
TextUtility.format(Texts.MESSAGE_E502, fileName, ex.getMessage()));
@ -149,8 +149,8 @@ public final class ASAPPlayer extends SoundPlayer {
// Translate the file type to a human readable text.
try {
info.moduleTypeDescription = ASAPInfo.getExtDescription(info.moduleFileType);
} catch (Exception unknownExtensionException) {
info.moduleTypeDescription = unknownExtensionException.getMessage();
} catch (ASAPFormatException ex) {
info.moduleTypeDescription = ex.getMessage();
}
final List<FileType> supportedExportFileTypes = new ArrayList<FileType>();
@ -241,7 +241,7 @@ public final class ASAPPlayer extends SoundPlayer {
try {
info = asap.getInfo();
asap.playSong(song, info.getLoop(song) ? -1 : info.getDuration(song));
} catch (Exception ex) {
} catch (ASAPArgumentException|ASAPFormatException ex) {
// ERROR: Cannot play song number {0}. {1}
IStatus status = new Status(IStatus.ERROR, SoundPlugin.ID, TextUtility.format(Texts.MESSAGE_E503,
NumberUtility.getLongValueDecimalString(song), ex.getMessage()));
@ -283,7 +283,7 @@ public final class ASAPPlayer extends SoundPlayer {
listenerUpdatedPosition = position;
listener.playerUpdated(SoundPlayerListener.POSITION);
}
} catch (Exception ex) {
} catch (ASAPFormatException ex) {
throw new RuntimeException("Cannot seeek to position " + position, ex);
}
}