Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/lib/plugins/importoldchangelog/action.php on line 8

Strict Standards: Declaration of action_plugin_safefnrecode::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/lib/plugins/safefnrecode/action.php on line 0

Strict Standards: Declaration of action_plugin_popularity::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/lib/plugins/popularity/action.php on line 0

Strict Standards: Declaration of Doku_Renderer_metadata::table_open() should be compatible with Doku_Renderer::table_open($maxcols = NULL, $numrows = NULL, $pos = NULL) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/inc/parser/metadata.php on line 24

Strict Standards: Declaration of Doku_Renderer_metadata::table_close() should be compatible with Doku_Renderer::table_close($pos = NULL) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/inc/parser/metadata.php on line 24
tery:terysound_code [TeryWiki]
 

Usefull global variables, constants and definitions

#define MUSIC_DIRECTORY		".\\Media\\musics\\"
#define SOUND_DIRECTORY		".\\Media\\sounds\\"
typedef long UNIQUEID;
typedef enum eState {
   UNINITIALIZED,
   INITIALIZED
} STATE;
typedef enum e_PlayingMode {
 	   PLAYONCE,
 	   PLAYLOOPED,
   PLAYALL,
   SHUFFLE,
} MUSIC_PLAYING_MODE;
static std::string SoundDir = SOUND_DIRECTORY;
static std::string MusicDir = MUSIC_DIRECTORY;

Interface functions

// creates and initializes whole sound system and creates instance of it
// if failed returns false and NULL pointer
static bool CreateSoundFactory(CTerySound **pSoundInstance);
// static destructor with all necessaries
static void Dispose();
// returns actual state of CTerySound system ( INITIALIZED, UNINITIALIZED )
static TerySound::STATE getState();
// set volume of music stream ( 0 .. 1 )
void setSfxVolume( float volume );
// set volume of sound effects ( 0 .. 1 )
void setMusicVolume( float volume );
// call it once per frame to force all internal changes to show
void Update();
// erase all events and their resources
void EraseEventSystem();
// return event key if succesfull, or -1 if not
UNIQUEID RegisterPlayOnceEvent( const char* fileName );
// counterpart for the RegisterPlayOnceEvent method
void UnregisterPlayOnceEvent( TerySound::UNIQUEID eventID );
// appropriate registered sound will be played
void TriggerPlayOnceEvent( TerySound::UNIQUEID eventID );
// register the name for this source and return access key
UNIQUEID RegisterMusic( const char* filename );
// counterpart for the RegisterMusic function
void UnregisterMusic( TerySound::UNIQUEID musicID );
// clear music playlist
void ErasePlayList();
// play last stopped music track
void PlayMusic( void );
// play music stream referenced by key
void PlayMusic( UNIQUEID id );
// play music stream referenced by key and specifying its playing mode
void PlayMusic( UNIQUEID id, TerySound::MUSIC_PLAYING_MODE mode );
// pause currently playing music stream if it's playing
// or unpause currently paused
void PauseMusic( void );
// pause or unpause currently playing music stream if is playing
// 'bool pause' argumet works as a switch
void PauseMusic( bool pause );
// stop currently playing music stream if is playing
void StopMusic( void );
tery/terysound_code.txt · Last modified: 2007/02/18 22:14 by siiilon
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki