Audio Scol plugin 1.0
Audio Scol plugin based on CAudio library
Public Member Functions | Static Public Member Functions | List of all members
SAudioManager Class Reference
Inheritance diagram for SAudioManager:

Public Member Functions

cAudio::IAudioManager * GetManager ()
 
void SetListenerPosition (cAudio::cVector3 pos, cAudio::cVector3 dir)
 
bool GetValidSound (SAudioSound *sound)
 
void RemoveSound (SAudioSound *sound)
 
SAudioSoundAddSound (std::string name, std::string path, bool stream)
 
SAudioSoundAddSound (std::string name, unsigned int frequency, cAudio::AudioFormats format)
 
void Pause ()
 
void Resume ()
 
void StopAllSounds ()
 
bool GetPaused ()
 
void SetMuted (bool value)
 
void ToggleMute ()
 
bool IsMuted ()
 
void SetMasterVolume (float volume)
 
float GetMasterVolume ()
 
SAudioInputCreateAudioCapture (int device=-1, unsigned int frequency=22050, cAudio::AudioFormats format=cAudio::EAF_8BIT_MONO)
 
void RemoveAudioCapture (SAudioInput *capture)
 
virtual void onInit ()
 This function is called on manager initialization.
 
virtual void onUpdate ()
 This function is called on every manager update.
 
virtual void onRelease ()
 This function is called on manager shutdown.
 
virtual void onSourceCreate ()
 This function is called on when an audio source is created.
 
virtual void onDecoderRegister ()
 This function is called when an audio decoder is registered.
 
virtual void onDataSourceRegister ()
 This function is called when a data source is registered.
 
virtual void onDeviceChange ()
 This function is called when the default device has change.
 

Static Public Member Functions

static SAudioManagerGetInstance ()
 
static void Kill ()
 

Detailed Description

Definition at line 77 of file audio.h.

Member Function Documentation

◆ AddSound() [1/2]

SAudioSound * SAudioManager::AddSound ( std::string  name,
std::string  path,
bool  stream 
)

Definition at line 708 of file audio.cpp.

◆ AddSound() [2/2]

SAudioSound * SAudioManager::AddSound ( std::string  name,
unsigned int  frequency,
cAudio::AudioFormats  format 
)

Definition at line 722 of file audio.cpp.

◆ CreateAudioCapture()

SAudioInput * SAudioManager::CreateAudioCapture ( int  device = -1,
unsigned int  frequency = 22050,
cAudio::AudioFormats  format = cAudio::EAF_8BIT_MONO 
)

Definition at line 644 of file audio.cpp.

◆ GetInstance()

SAudioManager * SAudioManager::GetInstance ( )
static

Definition at line 625 of file audio.cpp.

◆ GetManager()

cAudio::IAudioManager * SAudioManager::GetManager ( )

Definition at line 639 of file audio.cpp.

◆ GetMasterVolume()

float SAudioManager::GetMasterVolume ( )

Definition at line 839 of file audio.cpp.

◆ GetPaused()

bool SAudioManager::GetPaused ( )

Definition at line 736 of file audio.cpp.

◆ GetValidSound()

bool SAudioManager::GetValidSound ( SAudioSound sound)

Definition at line 691 of file audio.cpp.

◆ IsMuted()

bool SAudioManager::IsMuted ( )

Definition at line 829 of file audio.cpp.

◆ Kill()

void SAudioManager::Kill ( )
static

Definition at line 634 of file audio.cpp.

◆ onDataSourceRegister()

void SAudioManager::onDataSourceRegister ( )
virtual

This function is called when a data source is registered.

Definition at line 601 of file audio.cpp.

◆ onDecoderRegister()

void SAudioManager::onDecoderRegister ( )
virtual

This function is called when an audio decoder is registered.

Definition at line 596 of file audio.cpp.

◆ onDeviceChange()

void SAudioManager::onDeviceChange ( )
virtual

This function is called when the default device has change.

Definition at line 606 of file audio.cpp.

◆ onInit()

void SAudioManager::onInit ( )
virtual

This function is called on manager initialization.

Definition at line 576 of file audio.cpp.

◆ onRelease()

void SAudioManager::onRelease ( )
virtual

This function is called on manager shutdown.

Definition at line 586 of file audio.cpp.

◆ onSourceCreate()

void SAudioManager::onSourceCreate ( )
virtual

This function is called on when an audio source is created.

Definition at line 591 of file audio.cpp.

◆ onUpdate()

void SAudioManager::onUpdate ( )
virtual

This function is called on every manager update.

Definition at line 581 of file audio.cpp.

◆ Pause()

void SAudioManager::Pause ( )

Definition at line 741 of file audio.cpp.

◆ RemoveAudioCapture()

void SAudioManager::RemoveAudioCapture ( SAudioInput capture)

Definition at line 659 of file audio.cpp.

◆ RemoveSound()

void SAudioManager::RemoveSound ( SAudioSound sound)

Definition at line 699 of file audio.cpp.

◆ Resume()

void SAudioManager::Resume ( )

Definition at line 766 of file audio.cpp.

◆ SetListenerPosition()

void SAudioManager::SetListenerPosition ( cAudio::cVector3  pos,
cAudio::cVector3  dir 
)

Definition at line 669 of file audio.cpp.

◆ SetMasterVolume()

void SAudioManager::SetMasterVolume ( float  volume)

Definition at line 834 of file audio.cpp.

◆ SetMuted()

void SAudioManager::SetMuted ( bool  value)

Definition at line 799 of file audio.cpp.

◆ StopAllSounds()

void SAudioManager::StopAllSounds ( )

Definition at line 794 of file audio.cpp.

◆ ToggleMute()

void SAudioManager::ToggleMute ( )

Definition at line 814 of file audio.cpp.


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