RedCore
Loading...
Searching...
No Matches
red::AudioObject Class Reference

#include <AudioObject.h>

Inherits red::SoundObject.

Public Member Functions

 AudioObject (AudAudioPlayer *player, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN)
nw::snd::SoundHandle * startSound (const char *label, const sead::Vector2f &pos, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN) override
nw::snd::SoundHandle * holdSound (const char *label, const sead::Vector2f &pos, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN) override
void calc (const sead::Vector2f &pos) override
nw::snd::SoundHandle * startSound (const char *label, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN)
nw::snd::SoundHandle * holdSound (const char *label, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN)
Public Member Functions inherited from red::SoundObject
 SoundObject (AudAudioPlayer *player, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN)
nw::snd::SoundHandle * startSound (const char *label, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN)
nw::snd::SoundHandle * holdSound (const char *label, nw::snd::OutputLine outputLine=nw::snd::OutputLine::OUTPUT_LINE_MAIN)
void sendRemote (nw::snd::SoundHandle *handle, const char *label, nw::snd::OutputLine outputLine)
void setSoundPosition (nw::snd::SoundHandle *handle, const sead::Vector2f &pos)

Additional Inherited Members

Static Public Attributes inherited from red::SoundObject
static const u32 cPlayableSoundNum = 12
static const u32 cHandleNum = cPlayableSoundNum + cExtraHandleNum
Protected Member Functions inherited from red::SoundObject
nw::snd::SoundHandle * startSound_ (const char *label, nw::snd::OutputLine outputLine)
nw::snd::SoundHandle * holdSound_ (const char *label, nw::snd::OutputLine outputLine)
nw::snd::SoundHandle * startSound_ (const char *label, const sead::Vector2f &pos, nw::snd::OutputLine outputLine)
nw::snd::SoundHandle * holdSound_ (const char *label, const sead::Vector2f &pos, nw::snd::OutputLine outputLine)
nw::snd::SoundHandle * getFreeHandle_ ()
nw::snd::SoundHandle * findHandle_ (const char *label)
Protected Attributes inherited from red::SoundObject
AudAudioPlayer * mAudioPlayer
nw::snd::SoundHandle mHandles [cHandleNum]
sead::Vector2f mPos

Constructor & Destructor Documentation

◆ AudioObject()

red::AudioObject::AudioObject ( AudAudioPlayer * player,
nw::snd::OutputLine outputLine = nw::snd::OutputLine::OUTPUT_LINE_MAIN )
inline

Member Function Documentation

◆ startSound() [1/2]

nw::snd::SoundHandle * red::AudioObject::startSound ( const char * label,
const sead::Vector2f & pos,
nw::snd::OutputLine outputLine = nw::snd::OutputLine::OUTPUT_LINE_MAIN )
inlineoverridevirtual

Reimplemented from red::SoundObject.

◆ holdSound() [1/2]

nw::snd::SoundHandle * red::AudioObject::holdSound ( const char * label,
const sead::Vector2f & pos,
nw::snd::OutputLine outputLine = nw::snd::OutputLine::OUTPUT_LINE_MAIN )
inlineoverridevirtual

Reimplemented from red::SoundObject.

◆ calc()

void red::AudioObject::calc ( const sead::Vector2f & pos)
inlineoverridevirtual

Reimplemented from red::SoundObject.

◆ startSound() [2/2]

nw::snd::SoundHandle * red::SoundObject::startSound ( const char * label,
nw::snd::OutputLine outputLine = nw::snd::OutputLine::OUTPUT_LINE_MAIN )
inline

◆ holdSound() [2/2]

nw::snd::SoundHandle * red::SoundObject::holdSound ( const char * label,
nw::snd::OutputLine outputLine = nw::snd::OutputLine::OUTPUT_LINE_MAIN )
inline