#include <SkAudioPlayer.h>
Definition at line 12 of file SkAudioPlayer.h.
◆ State
Enumerator |
---|
kPlaying | |
kStopped | |
kPaused | |
Definition at line 27 of file SkAudioPlayer.h.
27 {
28 kPlaying,
29 kStopped,
31 };
◆ ~SkAudioPlayer()
SkAudioPlayer::~SkAudioPlayer |
( |
| ) |
|
|
virtual |
◆ SkAudioPlayer()
SkAudioPlayer::SkAudioPlayer |
( |
| ) |
|
|
inlineprotected |
◆ duration()
double SkAudioPlayer::duration |
( |
| ) |
const |
|
inline |
Definition at line 20 of file SkAudioPlayer.h.
virtual double onGetDuration() const =0
◆ isPaused()
bool SkAudioPlayer::isPaused |
( |
| ) |
const |
|
inline |
◆ isPlaying()
bool SkAudioPlayer::isPlaying |
( |
| ) |
const |
|
inline |
◆ isStopped()
bool SkAudioPlayer::isStopped |
( |
| ) |
const |
|
inline |
◆ Make()
◆ normalizedTime()
double SkAudioPlayer::normalizedTime |
( |
| ) |
const |
|
inline |
◆ onGetDuration()
virtual double SkAudioPlayer::onGetDuration |
( |
| ) |
const |
|
protectedpure virtual |
◆ onGetTime()
virtual double SkAudioPlayer::onGetTime |
( |
| ) |
const |
|
protectedpure virtual |
◆ onSetRate()
virtual float SkAudioPlayer::onSetRate |
( |
float |
| ) |
|
|
protectedpure virtual |
◆ onSetState()
◆ onSetTime()
virtual double SkAudioPlayer::onSetTime |
( |
double |
| ) |
|
|
protectedpure virtual |
◆ onSetVolume()
virtual float SkAudioPlayer::onSetVolume |
( |
float |
| ) |
|
|
protectedpure virtual |
◆ pause()
void SkAudioPlayer::pause |
( |
| ) |
|
|
inline |
◆ play()
void SkAudioPlayer::play |
( |
| ) |
|
|
inline |
◆ rate()
float SkAudioPlayer::rate |
( |
| ) |
const |
|
inline |
◆ setNormalizedTime()
double SkAudioPlayer::setNormalizedTime |
( |
double |
t | ) |
|
◆ setRate()
float SkAudioPlayer::setRate |
( |
float |
r | ) |
|
Definition at line 37 of file SkAudioPlayer.cpp.
37 {
40 r = fRate;
41 }
42 if (r != fRate) {
44 }
45 return fRate;
46}
virtual float onSetRate(float)=0
static float max(float r, float g, float b)
static float min(float r, float g, float b)
SINT bool isfinite(const Vec< N, T > &v)
◆ setState()
Definition at line 30 of file SkAudioPlayer.cpp.
30 {
33 }
34 return fState;
35}
virtual State onSetState(State)=0
◆ setTime()
double SkAudioPlayer::setTime |
( |
double |
t | ) |
|
Definition at line 14 of file SkAudioPlayer.cpp.
14 {
18 }
19 if (t != this->
time()) {
21 }
22 return t;
23}
virtual double onSetTime(double)=0
◆ setVolume()
float SkAudioPlayer::setVolume |
( |
float |
v | ) |
|
Definition at line 48 of file SkAudioPlayer.cpp.
48 {
51 v = fVolume;
52 }
53 if (v != fVolume) {
55 }
56 return fVolume;
57}
virtual float onSetVolume(float)=0
◆ state()
State SkAudioPlayer::state |
( |
| ) |
const |
|
inline |
◆ stop()
void SkAudioPlayer::stop |
( |
| ) |
|
|
inline |
◆ time()
double SkAudioPlayer::time |
( |
| ) |
const |
|
inline |
◆ volume()
float SkAudioPlayer::volume |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: