X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Faudiocontainer.h;h=7a3a4cc2ddc346573d71b3a1e93ae92ba057e75e;hb=0809ba8eb14cf885c8f197d751c80cced84d9676;hp=e9ff8d8c98c161d7283ccae447e6d62a7fd3d6ac;hpb=ce408de81ca266b1f334ee9bc6c8fb7ba1492ed4;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/audiocontainer.h b/synfig-studio/trunk/src/gtkmm/audiocontainer.h index e9ff8d8..7a3a4cc 100644 --- a/synfig-studio/trunk/src/gtkmm/audiocontainer.h +++ b/synfig-studio/trunk/src/gtkmm/audiocontainer.h @@ -50,7 +50,7 @@ class AudioProfile : public etl::shared_object { public: typedef std::vector SampleProfile; - + private: SampleProfile samples; double samplerate; //samples / second of the profile @@ -62,23 +62,23 @@ public: //samples interface SampleProfile::const_iterator begin() const {return samples.begin();} SampleProfile::const_iterator end() const {return samples.end();} - + void clear(); unsigned int size() const {return samples.size();} - + char operator[](int i) const { if(i >= 0 && i < (int)samples.size()) return samples[i]; else return 0; } - + public: // - + double get_samplerate() const {return samplerate;} void set_samplerate(double f) {samplerate = f;} - + double get_offset() const; - + etl::handle get_parent() const; void set_parent(etl::handle i); friend class AudioContainer; @@ -90,13 +90,13 @@ public: // class AudioContainer : public sigc::trackable, public etl::shared_object { etl::handle prof; - + struct AudioImp; AudioImp *imp; - - bool profilevalid; //this is only half useful + + bool profilevalid; //this is only half useful //it makes it so we don't always have to realloc memory when the file switches... - + public: //structors AudioContainer(); @@ -119,7 +119,7 @@ public: //operational interface void stop(); //Note: this refers to the wrapper concept of the audio, the actual sound may or may not be playing... bool is_playing() const; - + //scrubbing functions... void start_scrubbing(double t); void stop_scrubbing(); @@ -131,7 +131,7 @@ public: //operational interface bool isRunning() const; bool isPaused() const; }; - + } // END of namespace studio /* === E N D =============================================================== */