forked from NearInfinityBrowser/NearInfinity
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New audio player and sound panel classes for improved sound playback
- SingleAudioPlayer class provides more responsive audio playback. - SoundPanel class provides a customizable UI control panel for audio playback. - Updated SoundResource class and ResourceRef datatype to utilize new classes.
- Loading branch information
Showing
11 changed files
with
1,888 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Near Infinity - An Infinity Engine Browser and Editor | ||
// Copyright (C) 2001 Jon Olav Hauglid | ||
// See LICENSE.txt for license information | ||
|
||
package org.infinity.exceptions; | ||
|
||
/** | ||
* A generic exception that is thrown if a resource-related problem occurs. | ||
*/ | ||
public class ResourceException extends Exception { | ||
/** Constructs an {@code ResourceException} with no detail message. */ | ||
public ResourceException() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Constructs an {@code ResourceException} with the specified detail message. | ||
* | ||
* @param message the detail message. | ||
*/ | ||
public ResourceException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Constructs an {@code ResourceException} with the specified detail message and cause. | ||
* | ||
* @param message the detail message. | ||
* @param cause the cause for this exception to be thrown. | ||
*/ | ||
public ResourceException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Constructs an {@code ResourceException} with a cause but no detail message. | ||
* | ||
* @param cause the cause for this exception to be thrown. | ||
*/ | ||
public ResourceException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/org/infinity/exceptions/ResourceNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Near Infinity - An Infinity Engine Browser and Editor | ||
// Copyright (C) 2001 Jon Olav Hauglid | ||
// See LICENSE.txt for license information | ||
|
||
package org.infinity.exceptions; | ||
|
||
/** | ||
* Thrown if a game resource could not be found. | ||
*/ | ||
public class ResourceNotFoundException extends ResourceException { | ||
/** Constructs an {@code ResourceNotFoundException} with no detail message. */ | ||
public ResourceNotFoundException() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Constructs an {@code ResourceNotFoundException} with the specified detail message. | ||
* | ||
* @param message the detail message. | ||
*/ | ||
public ResourceNotFoundException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Constructs an {@code ResourceNotFoundException} with the specified detail message and cause. | ||
* | ||
* @param message the detail message. | ||
* @param cause the cause for this exception to be thrown. | ||
*/ | ||
public ResourceNotFoundException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Constructs an {@code ResourceNotFoundException} with a cause but no detail message. | ||
* | ||
* @param cause the cause for this exception to be thrown. | ||
*/ | ||
public ResourceNotFoundException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.