Skip to content

Commit

Permalink
New audio player class for non-buffered sounds and various improvements
Browse files Browse the repository at this point in the history
Added new interface for generalized audio player functionality:
- StreamingAudioPlayback: controls for streamed/non-buffered audio data

New class: StreamingAudioPlayer
- provides audio playback functionality for non-buffered audio data

Updated InfinityAmpPlus and MUS resource viewer to use new StreamingAudioPlayer class.
Various sound-related improvements and bugfixes.
  • Loading branch information
Argent77 committed Dec 1, 2024
1 parent 92c23bc commit 88255d3
Show file tree
Hide file tree
Showing 17 changed files with 1,672 additions and 426 deletions.
3 changes: 1 addition & 2 deletions src/org/infinity/datatype/ResourceRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ public class ResourceRef extends Datatype
private static final Comparator<ResourceRefEntry> IGNORE_CASE_EXT_COMPARATOR = new IgnoreCaseExtComparator();

/** List of resource types that are can be used to display associated icons. */
private static final HashSet<String> ICON_EXTENSIONS = new HashSet<>(
Arrays.asList(new String[] { "BMP", "ITM", "SPL" }));
private static final HashSet<String> ICON_EXTENSIONS = new HashSet<>(Arrays.asList("BMP", "ITM", "SPL"));

/** Special constant that represents absense of resource in the field. */
private static final ResourceRefEntry NONE = new ResourceRefEntry("None");
Expand Down
6 changes: 6 additions & 0 deletions src/org/infinity/gui/InfinityAmp.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
import org.infinity.util.SimpleListModel;
import org.infinity.util.io.StreamUtils;

// TODO: remove class from project
/**
* A music player for MUS files.
*
* @deprecated Superseded by {@link InfinityAmpPlus}.
*/
@Deprecated
public final class InfinityAmp extends ChildFrame
implements ActionListener, ListSelectionListener, Runnable, Closeable {
Expand Down
Loading

0 comments on commit 88255d3

Please sign in to comment.