Skip to content

Commit

Permalink
Various improvements and fixes for audio playback
Browse files Browse the repository at this point in the history
Added interfaces for generalized audio player functionality:
- AudioPlayback: basic playback controls
- BufferedAudioPlayback: controls for prebuffered audio data

SoundPanel:
- Fixed several loop mode issues
- Added option to use combined or separate play/pause controls
- Click on progress slider moves playback position to mouse position
  • Loading branch information
Argent77 committed Nov 27, 2024
1 parent a24cf49 commit c9772cb
Show file tree
Hide file tree
Showing 6 changed files with 358 additions and 171 deletions.
3 changes: 2 additions & 1 deletion src/org/infinity/datatype/ResourceRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ public void mouseClicked(MouseEvent event) {
bView = new JButton("View/Edit", Icons.ICON_ZOOM_16.getIcon());
bView.addActionListener(this);

soundPanel = new SoundPanel(SoundPanel.Option.TIME_LABEL, SoundPanel.Option.PROGRESS_BAR);
soundPanel = new SoundPanel(SoundPanel.Option.COMPACT_CONTROLS, SoundPanel.Option.TIME_LABEL,
SoundPanel.Option.PROGRESS_BAR);
soundPanel.setDisplayFormat(SoundPanel.DisplayFormat.ELAPSED_TOTAL_PRECISE);
soundPanel.setVisible(ResourceEntry.isSound(types));

Expand Down
Loading

0 comments on commit c9772cb

Please sign in to comment.