Wt::SDLMixer::Music Class Reference

#include <sdlmixer.h>

Inheritance diagram for Wt::SDLMixer::Music:

Inheritance graph
Collaboration diagram for Wt::SDLMixer::Music:

Collaboration graph
List of all members.

Public Member Functions

virtual int type () const
 operator Mix_Music * () const
virtual ~Music ()

Protected Member Functions

 Music (Mix_Music *music_p)

Private Attributes

Mix_Music * music_p


class SDLMixer

Detailed Description

Definition at line 142 of file sdlmixer.h.

Constructor & Destructor Documentation

Wt::SDLMixer::Music::Music ( Mix_Music *  music_p  )  [protected]

Definition at line 160 of file sdlmixer.cpp.

References trace.

00161         : Audio::Music(),
00162 music_p(music_p) {
00163     trace("sdlmixer", "SDLMixer::Music::Music() constructor called\n");
00164 }

Wt::SDLMixer::Music::~Music (  )  [virtual]

Reimplemented from Wt::Audio::Music.

Definition at line 166 of file sdlmixer.cpp.

References music_p.

00166                       {
00167     Mix_FreeMusic(music_p);
00168 }

Member Function Documentation

Wt::SDLMixer::Music::operator Mix_Music * (  )  const [inline]

Definition at line 149 of file sdlmixer.h.

References music_p.

00149                                      {
00150             return music_p;
00151         }

int Wt::SDLMixer::Music::type (  )  const [virtual]

Reimplemented from Wt::Audio::Music.

Definition at line 220 of file sdlmixer.cpp.

References music_p, and Wt::SDLMixer::musicTypeMap.

00220                               {
00221     return musicTypeMap[Mix_GetMusicType(music_p)];
00222 }

Friends And Related Function Documentation

friend class SDLMixer [friend]

Definition at line 143 of file sdlmixer.h.

Member Data Documentation

Mix_Music* Wt::SDLMixer::Music::music_p [private]

Definition at line 155 of file sdlmixer.h.

Referenced by operator Mix_Music *(), type(), and ~Music().

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

Generated Fri Jul 28 19:32:47 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.