Public Member Functions | |
SoundClip (const SoundClip &) | |
SoundClip & | operator= (const SoundClip &a) |
SoundClip * | clone () const override |
Status | init (const QString &strSoundFile) |
bool | isValid () const |
void | setSoundClipName (const QString &sName) |
QString | soundClipName () const |
void | attachPlayer (SoundPlayer *player) |
void | detachPlayer () |
SoundPlayer * | player () const |
void | play () |
void | playFromPosition (int frameNumber, int fps) |
void | pause () |
void | stop () |
int64_t | duration () const |
void | setDuration (const int64_t &duration) |
void | updateLength (int fps) |
Public Member Functions inherited from KeyFrame | |
KeyFrame (const KeyFrame &k2) | |
KeyFrame & | operator= (const KeyFrame &k2) |
int | pos () const |
void | setPos (int position) |
int | length () const |
void | setLength (int len) |
void | modification () |
void | setModified (bool b) |
bool | isModified () const |
void | setSelected (bool b) |
bool | isSelected () const |
QString | fileName () const |
void | setFileName (QString strFileName) |
void | addEventListener (KeyFrameEventListener *) |
void | removeEventListner (KeyFrameEventListener *) |
virtual KeyFrame * | clone () const |
virtual void | loadFile () |
virtual void | unloadFile () |
virtual bool | isLoaded () const |
virtual quint64 | memoryUsage () |
Private Attributes | |
std::shared_ptr< SoundPlayer > | mPlayer |
QString | mOriginalSoundClipName |
int64_t | mDuration = 0 |
Definition at line 26 of file soundclip.h.
|
explicit |
Definition at line 25 of file soundclip.cpp.
|
explicit |
Definition at line 29 of file soundclip.cpp.
|
override |
Definition at line 34 of file soundclip.cpp.
void SoundClip::attachPlayer | ( | SoundPlayer * | player | ) |
Definition at line 83 of file soundclip.cpp.
|
overridevirtual |
Reimplemented from KeyFrame.
Definition at line 51 of file soundclip.cpp.
void SoundClip::detachPlayer | ( | ) |
Definition at line 89 of file soundclip.cpp.
int64_t SoundClip::duration | ( | ) | const |
Definition at line 134 of file soundclip.cpp.
Definition at line 58 of file soundclip.cpp.
bool SoundClip::isValid | ( | ) | const |
Definition at line 68 of file soundclip.cpp.
Definition at line 39 of file soundclip.cpp.
void SoundClip::pause | ( | ) |
Definition at line 118 of file soundclip.cpp.
void SoundClip::play | ( | ) |
Definition at line 94 of file soundclip.cpp.
|
inline |
Definition at line 44 of file soundclip.h.
void SoundClip::playFromPosition | ( | int | frameNumber, |
int | fps | ||
) |
Definition at line 102 of file soundclip.cpp.
void SoundClip::setDuration | ( | const int64_t & | duration | ) |
Definition at line 139 of file soundclip.cpp.
|
inline |
Definition at line 39 of file soundclip.h.
|
inline |
Definition at line 40 of file soundclip.h.
void SoundClip::stop | ( | ) |
Definition at line 126 of file soundclip.cpp.
void SoundClip::updateLength | ( | int | fps | ) |
Definition at line 144 of file soundclip.cpp.
|
private |
Definition at line 63 of file soundclip.h.
|
private |
Definition at line 59 of file soundclip.h.
|
private |
Definition at line 57 of file soundclip.h.