cleaned up midi1

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit
2003-03-17 22:24:09 +00:00
parent d89d006239
commit 38c7401ebe
9 changed files with 200 additions and 373 deletions
+6 -22
View File
@@ -11,25 +11,16 @@ typedef bool (*sample_loop_hook)(int32 arg);
class BSamples
{
public:
BSamples();
virtual ~BSamples();
/* start a sample playing */
void Start(
void* sampleData, /* pointer to audio data*/
int32 frames, /* number of frames*/
int16 bytes_per_sample, /* btyes per sample 1 or 2*/
int16 channel_count, /* mono or stereo 1 or 2*/
double pitch, /* floating sample rate*/
int32 loopStart, /* loop start in frames*/
int32 loopEnd, /* loop end in frames*/
double sampleVolume, /* sample volume*/
double stereoPosition, /* stereo placement*/
int32 hook_arg, /* hook argument*/
sample_loop_hook pLoopContinueProc,
sample_exit_hook pDoneProc);
void* sampleData, int32 frames, int16 bytes_per_sample,
int16 channel_count, double pitch, int32 loopStart, int32 loopEnd,
double sampleVolume, double stereoPosition, int32 hook_arg,
sample_loop_hook pLoopContinueProc, sample_exit_hook pDoneProc);
/* currently paused */
bool IsPaused(void) const;
void Pause(void);
void Resume(void);
@@ -43,11 +34,8 @@ public:
double SamplingRate(void) const;
void SetPlacement(double stereoPosition);
/* Set the stereo position (-1.0 left to +1.0 right, 0 is middle) */
double Placement(void) const;
/* Enable/Disable reverb on this particular IgorSound */
void EnableReverb(bool useReverb);
private:
@@ -56,11 +44,7 @@ private:
virtual void _ReservedSamples2();
virtual void _ReservedSamples3();
int32 fReference;
double fPauseVariable;
void* fFileVariables;
uint32 _reserved[4];
uint32 _reserved[8];
};
#endif // _SAMPLES_H