#include <MusicSystem.hpp>
Public Member Functions | |
| MusicSystem () | |
| Constructor. | |
| virtual | ~MusicSystem () |
| Destructor. | |
| virtual bool | play (const std::string &file)=0 |
| Play a music. | |
| virtual bool | update ()=0 |
| Update the music. | |
| virtual bool | pause ()=0 |
| Pause the music. | |
| virtual void | stop ()=0 |
| Stop the music. | |
This is the music object which allows to manage the music. This is a pure abstract class which needs a concrete implementation (using OpenAL, DirectSound or any other sound library).
| syBR::AudioCore::MusicSystem::MusicSystem | ( | ) |
Constructor.
| syBR::AudioCore::MusicSystem::~MusicSystem | ( | ) | [virtual] |
Destructor.
| virtual bool syBR::AudioCore::MusicSystem::play | ( | const std::string & | file | ) | [pure virtual] |
Play a music.
| file | Filename |
| virtual bool syBR::AudioCore::MusicSystem::update | ( | ) | [pure virtual] |
Update the music.
This must be often called in order to stream the music.
| virtual bool syBR::AudioCore::MusicSystem::pause | ( | ) | [pure virtual] |
Pause the music.
It works as a toggle :
| virtual void syBR::AudioCore::MusicSystem::stop | ( | ) | [pure virtual] |
Stop the music.
Copyright © 2008 by Sebastien Frippiat

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:33 2008