coastline 0.0.4
Loading...
Searching...
No Matches
AudioOptionsUI Class Reference

Callbacks for PC music-track selection and persistent music and sound-effect volume. More...

#include <frontend.h>

Static Public Member Functions

static int UpdateVolumeChannelImage (MenuWidget *pWidget)
 Update the volume-channel image and its first animation frame.
static int UpdateVolumeLevelIndicatorPos (MenuWidget *pWidget)
 Position the volume indicator for the selected music or sound-effect channel.
static int UpdateCdTrackSelection (MenuWidget *pWidget)
 Draw and process the CD track list, accepting nonnegative activated-row results.
static int OnMusicTrackChanged (MenuItemList *pList, int *pTrack)
 Select the CD track two greater than the activated list index.
static int OnCycleSfxVolume (MenuActionWidget *pWidget)
 Select the sound-effect volume channel, cycle its 0..9 level using mouse edges, and apply it.
static int OnCycleMusicVolume (MenuActionWidget *pWidget)
 Select the music volume channel, cycle its 0..9 level using mouse edges, and apply it.
static int OnBackAndSave (MenuActionWidget *pItem)
 Destroy the audio-options screen, return to cached Options, back up choices, and save config.

Detailed Description

Callbacks for PC music-track selection and persistent music and sound-effect volume.

Callbacks for volume, CD track selection, and navigation in the PC audio-options menu.

Member Function Documentation

◆ UpdateVolumeChannelImage()

int AudioOptionsUI::UpdateVolumeChannelImage ( MenuWidget * pWidget)
static

Update the volume-channel image and its first animation frame.

Parameters
pWidgetThe non-null borrowed channel-image widget to update.
Returns
One.
Ghidra address:
BRD3D: 0x1003e950
Ghidra address:
BRGlide: 0x10037f70

◆ UpdateVolumeLevelIndicatorPos()

int AudioOptionsUI::UpdateVolumeLevelIndicatorPos ( MenuWidget * pWidget)
static

Position the volume indicator for the selected music or sound-effect channel.

Parameters
pWidgetThe non-null borrowed indicator widget to reposition.
Returns
One.
Ghidra address:
BRD3D: 0x1003ea40
Ghidra address:
BRGlide: 0x10038060

◆ UpdateCdTrackSelection()

int AudioOptionsUI::UpdateCdTrackSelection ( MenuWidget * pWidget)
static

Draw and process the CD track list, accepting nonnegative activated-row results.

Parameters
pWidgetThe non-null borrowed widget with the track list.
Returns
One.
Ghidra address:
BRD3D: 0x1003ee20
Ghidra address:
BRGlide: 0x10038350

◆ OnMusicTrackChanged()

int AudioOptionsUI::OnMusicTrackChanged ( MenuItemList * pList,
int * pTrack )
static

Select the CD track two greater than the activated list index.

Parameters
pListThe unused list pointer, possibly null.
pTrackA non-null borrowed selected-row pointer, read without modification.
Returns
One.
Ghidra address:
BRD3D: 0x1004e810
Ghidra address:
BRGlide: 0x100476c0

◆ OnCycleSfxVolume()

int AudioOptionsUI::OnCycleSfxVolume ( MenuActionWidget * pWidget)
static

Select the sound-effect volume channel, cycle its 0..9 level using mouse edges, and apply it.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10042cf0
Ghidra address:
BRGlide: 0x1003c240

◆ OnCycleMusicVolume()

int AudioOptionsUI::OnCycleMusicVolume ( MenuActionWidget * pWidget)
static

Select the music volume channel, cycle its 0..9 level using mouse edges, and apply it.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10042d60
Ghidra address:
BRGlide: 0x1003c2b0

◆ OnBackAndSave()

int AudioOptionsUI::OnBackAndSave ( MenuActionWidget * pItem)
static

Destroy the audio-options screen, return to cached Options, back up choices, and save config.

Parameters
pItemA non-null active-screen widget, invalidated when its panels are destroyed.
Returns
Zero to end the current widget update.
Ghidra address:
BRD3D: 0x100466c0
Ghidra address:
BRGlide: 0x1003fb10

The documentation for this class was generated from the following file: