[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11684] branches/soc-2007-hcube/intern/ tinySND/SND_FXSample.h: Added callback interface.
Csaba Hruska
csaba.hruska at gmail.com
Sun Aug 19 12:35:47 CEST 2007
Revision: 11684
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11684
Author: hcube
Date: 2007-08-19 12:35:47 +0200 (Sun, 19 Aug 2007)
Log Message:
-----------
Added callback interface.
Modified Paths:
--------------
branches/soc-2007-hcube/intern/tinySND/SND_FXSample.h
Modified: branches/soc-2007-hcube/intern/tinySND/SND_FXSample.h
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/SND_FXSample.h 2007-08-19 10:35:14 UTC (rev 11683)
+++ branches/soc-2007-hcube/intern/tinySND/SND_FXSample.h 2007-08-19 10:35:47 UTC (rev 11684)
@@ -34,46 +34,46 @@
BIDIRECTIONAL = 2
};
- SND_FXSample( SND_DataCache *dataCache, int channelIdx );
+ SND_FXSample( SND_DataCache *dataCache, int channelIdx );
// Creates its own DataCache instance. Its only for simplier usage.
- SND_FXSample( SND_DataProvider *dataProvider, int channelIdx );
+ SND_FXSample( SND_DataProvider *dataProvider, int channelIdx );
- ~SND_FXSample();
+ ~SND_FXSample();
- PlayState getPlayState();
- void play();
- void stop();
- void pause();
+ PlayState getPlayState();
+ void play();
+ void stop();
+ void pause();
- PlayDirection getPlayDirection();
- void setPlayDirection( PlayDirection playDirection );
+ PlayDirection getPlayDirection();
+ void setPlayDirection( PlayDirection playDirection );
- LoopMode getLoopMode();
- void setLoopMode( LoopMode loopMode );
- int getLoopStartFrame();
- void setLoopStartFrame( int frameNum );
- int getLoopEndFrame();
- void setLoopEndFrame( int frameNum );
+ LoopMode getLoopMode();
+ void setLoopMode( LoopMode loopMode );
+ int getLoopStartFrame();
+ void setLoopStartFrame( int frameNum );
+ int getLoopEndFrame();
+ void setLoopEndFrame( int frameNum );
- void setGain( float gain );
- float getGain();
+ void setGain( float gain );
+ float getGain();
- bool isMuted();
- void setMute( bool isMuted );
+ bool isMuted();
+ void setMute( bool isMuted );
- int getNumFrames();
- float getDuration(); // in sec
+ int getNumFrames();
+ float getDuration(); // in sec
- float getSampleRate();
- int getBitRate();
+ float getSampleRate();
+ int getBitRate();
- int getCurrentFrameNumber();
- void seek( int frameNum );
+ int getCurrentFrameNumber();
+ void seek( int frameNum );
- bool isDataAvailable();
+ bool isDataAvailable();
// we can request sound data. do not request big part, only few kilobytes are recommended
- float* getPCMDataPtr( int framesNum ); // incremets frame counter according to play state
+ float* getPCMDataPtr( int framesNum ); // incremets frame counter according to play state
private:
More information about the Bf-blender-cvs
mailing list