#include <OggVorbis.hpp>
Public Member Functions | |
| OggVorbisPlayer (Bufferer *Bufferer, unsigned int BlockSize) | |
| Constructor. | |
| ~OggVorbisPlayer () | |
| Destructor. | |
| bool | PlayLoad (const Core::String &File) |
| Play a file (load file). | |
| bool | PlayStart () |
| Play a file (start playback). | |
| bool | PlayUpdate () |
| Play a file (update playback). | |
| bool | PlayStop () |
| Play a file (stop playback). | |
| const Core::String & | GetArtist () const |
| Get the artist of the loaded music. | |
| const Core::String & | GetTitle () const |
| Get the title of the loaded music. | |
| const Core::String & | GetAlbum () const |
| Get the album of the loaded music. | |
| const Core::String & | GetDate () const |
| Get the date of the loaded music. | |
| const Core::String & | GetTrack () const |
| Get the track number of the loaded music. | |
| const Core::String & | GetGenre () const |
| Get the genre of the loaded music. | |
Private Member Functions | |
| void | LoadComments () |
| Load comments. | |
Private Attributes | |
| Bufferer * | ptrBufferer |
| Sound system bufferer (for streaming). | |
| Core::String | sFilename |
| Music file name. | |
| FILE * | hFile |
| Music file pointer. | |
| void * | oggStream |
| Ogg stream. | |
| void * | vorbisInfo |
| Informations about the file. | |
| void * | vorbisComment |
| Comments about the file. | |
| SOUNDFORMAT | Format |
| Audio format of the file. | |
| unsigned int | uiBlockSize |
| Data block size to be used to fill the buffer. | |
| Core::String | sArtist |
| Music's artist name. | |
| Core::String | sTitle |
| Music's title name. | |
| Core::String | sAlbum |
| Music's album name. | |
| Core::String | sDate |
| Music's date value. | |
| Core::String | sTrackNum |
| Music's track number. | |
| Core::String | sGenre |
| Music's genre name. | |
This is the main object which allows to play an Ogg Vorbis sound file.
| AudioCore::OggVorbisPlayer::OggVorbisPlayer | ( | Bufferer * | Bufferer, | |
| unsigned int | BlockSize | |||
| ) |
| AudioCore::OggVorbisPlayer::~OggVorbisPlayer | ( | ) |
Destructor.
| bool AudioCore::OggVorbisPlayer::PlayLoad | ( | const Core::String & | File | ) |
Play a file (load file).
Initialize Ogg Vorbis structures and get file information.
| File | Filename |
| bool AudioCore::OggVorbisPlayer::PlayStart | ( | ) |
Play a file (start playback).
| bool AudioCore::OggVorbisPlayer::PlayUpdate | ( | ) |
Play a file (update playback).
| bool AudioCore::OggVorbisPlayer::PlayStop | ( | ) |
Play a file (stop playback).
Stop playing and clear Ogg Vorbis structures.
| const Core::String & AudioCore::OggVorbisPlayer::GetArtist | ( | ) | const |
Get the artist of the loaded music.
| const Core::String & AudioCore::OggVorbisPlayer::GetTitle | ( | ) | const |
Get the title of the loaded music.
| const Core::String & AudioCore::OggVorbisPlayer::GetAlbum | ( | ) | const |
Get the album of the loaded music.
| const Core::String & AudioCore::OggVorbisPlayer::GetDate | ( | ) | const |
Get the date of the loaded music.
The date is retrieved as it is set in the comments of the file and, therefore, its format is unknown.
| const Core::String & AudioCore::OggVorbisPlayer::GetTrack | ( | ) | const |
Get the track number of the loaded music.
The track number is retrieved as it is set in the comments of the file and, therefore, its format is unknown.
| const Core::String & AudioCore::OggVorbisPlayer::GetGenre | ( | ) | const |
Get the genre of the loaded music.
| void AudioCore::OggVorbisPlayer::LoadComments | ( | ) | [private] |
Load comments.
Sound system bufferer (for streaming).
Core::String syBR::AudioCore::OggVorbisPlayer::sFilename [private] |
Music file name.
FILE* syBR::AudioCore::OggVorbisPlayer::hFile [private] |
Music file pointer.
The file is opened by PlayLoad() but it is automatically closed by Ogg Vorbis
void* syBR::AudioCore::OggVorbisPlayer::oggStream [private] |
Ogg stream.
void* syBR::AudioCore::OggVorbisPlayer::vorbisInfo [private] |
Informations about the file.
void* syBR::AudioCore::OggVorbisPlayer::vorbisComment [private] |
Comments about the file.
SOUNDFORMAT syBR::AudioCore::OggVorbisPlayer::Format [private] |
Audio format of the file.
unsigned int syBR::AudioCore::OggVorbisPlayer::uiBlockSize [private] |
Data block size to be used to fill the buffer.
Core::String syBR::AudioCore::OggVorbisPlayer::sArtist [private] |
Music's artist name.
Core::String syBR::AudioCore::OggVorbisPlayer::sTitle [private] |
Music's title name.
Core::String syBR::AudioCore::OggVorbisPlayer::sAlbum [private] |
Music's album name.
Core::String syBR::AudioCore::OggVorbisPlayer::sDate [private] |
Music's date value.
Core::String syBR::AudioCore::OggVorbisPlayer::sTrackNum [private] |
Music's track number.
Core::String syBR::AudioCore::OggVorbisPlayer::sGenre [private] |
Music's genre name.
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