Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
Public Member Functions | Private Attributes | List of all members
SoundClip Class Reference
+ Inheritance diagram for SoundClip:

Public Member Functions

Status init (const QString &strSoundFile)
 
bool isValid ()
 
void setSoundClipName (const QString &sName)
 
QString soundClipName ()
 
void attachPlayer (SoundPlayer *player)
 
void detachPlayer ()
 
SoundPlayerplayer ()
 
void play ()
 
void playFromPosition (int frameNumber, int fps)
 
void stop ()
 
int64_t duration () const
 
void setDuration (const int64_t &duration)
 
void updateLength (int fps)
 
- Public Member Functions inherited from KeyFrame
int pos ()
 
void setPos (int position)
 
int length ()
 
void setLength (int len)
 
void modification ()
 
void setModified (bool b)
 
bool isModified ()
 
void setSelected (bool b)
 
bool isSelected ()
 
QString fileName ()
 
void setFileName (QString strFileName)
 
void addEventListener (KeyFrameEventListener *)
 
void removeEventListner (KeyFrameEventListener *)
 
virtual bool isNull ()
 

Private Attributes

std::shared_ptr< SoundPlayermPlayer
 
QString mOriginalSoundClipName
 
int64_t mDuration = 0
 

Detailed Description

Definition at line 27 of file soundclip.h.


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