- made mixer::buffertToPort accept a stereoVolumeVector as audio-buffers

have stereo-audio-buffers now
- made peakValueLeft() and peakValueRight() take a sampleFrame-pointer
- process in stereo internally



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@874 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-04-03 20:27:23 +00:00
parent f1a2d8bce7
commit 753c5b86a3
2 changed files with 14 additions and 22 deletions

View File

@@ -73,11 +73,6 @@ const sample_rate_t DEFAULT_SAMPLE_RATE = 44100;
typedef sample_t sampleFrame[DEFAULT_CHANNELS];
typedef sample_t surroundSampleFrame[SURROUND_CHANNELS];
typedef struct
{
float vol[SURROUND_CHANNELS];
} volumeVector;
const Uint8 BYTES_PER_SAMPLE = sizeof( sample_t );
const Uint8 BYTES_PER_INT_SAMPLE = sizeof( int_sample_t );
@@ -274,8 +269,8 @@ public:
void FASTCALL bufferToPort( const sampleFrame * _buf,
const fpp_t _frames,
const f_cnt_t _offset,
const volumeVector & _volumeVector,
audioPort * _port );
stereoVolumeVector _volume_vector,
audioPort * _port );
void FASTCALL clearAudioBuffer( sampleFrame * _ab,
const f_cnt_t _frames,
@@ -286,10 +281,8 @@ public:
const f_cnt_t _offset = 0 );
#endif
static float peakValueLeft( surroundSampleFrame * _ab,
const f_cnt_t _frames );
static float peakValueRight( surroundSampleFrame * _ab,
const f_cnt_t _frames );
static float peakValueLeft( sampleFrame * _ab, const f_cnt_t _frames );
static float peakValueRight( sampleFrame * _ab, const f_cnt_t _frames );
bool criticalXRuns( void ) const;