nomlib
Loading...
Searching...
No Matches
nom::audio::OggSound Class Reference
Inheritance diagram for nom::audio::OggSound:
[legend]

Public Types

typedef Sound super

Public Member Functions

 OggSound (const std::string &filename)
 OggSound (nom::int16 *samples, nom::uint32 format, int channels)
virtual bool open (const std::string &filename)
virtual nom::real64 stream (nom::uint32 buffer, nom::real64 pos)
virtual bool stream__ (nom::uint32 buffer, nom::real64 pos)
Public Member Functions inherited from nom::audio::Sound
 Sound (const std::string &name)
nom::uint & buffer ()
 Identifier number for the implementation-defined buffer system.
nom::int16 * data ()
nom::uint64 bitrate () const
nom::real32 frequency () const
 Obtain the audio frequency in Hertz of this sound instance.
int channels () const
 Obtain the number of audio channels of this sound instance.
int total_bytes () const
 Obtain the total number of bytes for this sound instance.
int format () const
 Obtain the audio channel format as expressed in AL_FORMAT_XXX.
nom::real64 duration () const
 Obtain the total length of this sound instance.
nom::int64 sample_count () const
 Obtain the total sample count of this sound instance.
bool streaming () const

Static Public Member Functions

static std::string vorbis_version_string ()

Protected Attributes

file_handle * file_handle_
OggFile sfp_
Protected Attributes inherited from nom::audio::Sound
nom::audio::ISoundFileReader * fp_
nom::int16 * samples_
nom::int64 sample_count_
nom::uint buffer_id_
nom::uint64 bitrate_
nom::real32 frequency_
nom::real64 duration_
int total_bytes_
int num_channels_
nom::uint32 format_
bool streaming_

Private Member Functions

void check_error (const std::string &filename, int error_code)
void init (const std::string &filename)
void init (nom::int16 *samples, nom::uint32 format, int num_channels)
void close ()

Additional Inherited Members

Protected Member Functions inherited from nom::audio::Sound
void init (const std::string &filename)
void init (nom::int16 *samples, nom::uint32 format, int num_channels)

Detailed Description

Definition at line 22 of file OggSound.hpp.

Member Typedef Documentation

◆ super

typedef Sound nom::audio::OggSound::super

Definition at line 38 of file OggSound.hpp.

Member Function Documentation

◆ open()

virtual bool nom::audio::OggSound::open ( const std::string & filename)
virtual

Reimplemented from nom::audio::Sound.

◆ stream()

virtual nom::real64 nom::audio::OggSound::stream ( nom::uint32 buffer,
nom::real64 pos )
virtual

Reimplemented from nom::audio::Sound.

◆ stream__()

virtual bool nom::audio::OggSound::stream__ ( nom::uint32 buffer,
nom::real64 pos )
virtual

Reimplemented from nom::audio::Sound.

Member Data Documentation

◆ file_handle_

file_handle* nom::audio::OggSound::file_handle_
protected

Definition at line 25 of file OggSound.hpp.

◆ sfp_

OggFile nom::audio::OggSound::sfp_
protected

Definition at line 26 of file OggSound.hpp.


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