SaturnRingLibrary 0.6
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Sound::Cdda Class Reference

Detailed Description

CD audio playback.

#include <srl_sound.hpp>

Classes

class  Analysis
 CD audio analysis. More...
 

Static Public Member Functions

static void Play (const uint16_t fromTrack, const uint16_t toTrack, const bool loop)
 Play range of tracks.
 
static constexpr void PlaySingle (const uint16_t track, const bool loop)
 Play single CD track.
 
static void Resume ()
 Resume audio playback from where it left off.
 
static constexpr void SetPan (const uint8_t left, const uint8_t right)
 Set CD playback stereo pan.
 
static constexpr void SetVolume (const uint8_t left, const uint8_t right)
 Set CD playback volume.
 
static constexpr void SetVolume (const uint8_t volume)
 Set CD playback volume.
 
static void StopPause ()
 Stop or pause CD music playback.
 

Member Function Documentation

◆ Play()

static void SRL::Sound::Cdda::Play ( const uint16_t fromTrack,
const uint16_t toTrack,
const bool loop )
inlinestatic

Play range of tracks.

Parameters
fromTrackStarting track
toTrackEnding track
loopWhether to play the range of track again after it ends

◆ PlaySingle()

static constexpr void SRL::Sound::Cdda::PlaySingle ( const uint16_t track,
const bool loop )
inlinestaticconstexpr

Play single CD track.

Parameters
trackTrack number (in jo starts at 3)
loopWhether to loop track after it ends

◆ SetPan()

static constexpr void SRL::Sound::Cdda::SetPan ( const uint8_t left,
const uint8_t right )
inlinestaticconstexpr

Set CD playback stereo pan.

Parameters
leftLeft channel volume (7 is max)
rightRight channel volume (7 is max)

◆ SetVolume() [1/2]

static constexpr void SRL::Sound::Cdda::SetVolume ( const uint8_t left,
const uint8_t right )
inlinestaticconstexpr

Set CD playback volume.

Parameters
leftLeft channel audio volume (7 is max)
rightRight channle audio volume (7 is max)

◆ SetVolume() [2/2]

static constexpr void SRL::Sound::Cdda::SetVolume ( const uint8_t volume)
inlinestaticconstexpr

Set CD playback volume.

Parameters
volumeAudio volume (7 is max)