mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
Converted the BitArray class into "BigInteger", replacing its clunky old arithmetic methods with a proper set of arithmetic operators so it can be used like an int. All the bit-access methods are still there, and there's a typedef of BitArray -> BigInteger to allow most old code to still work. (You might need to change calls to isEmpty() to isZero() though). Also fixed a bug in MidiBuffer.
This commit is contained in:
parent
669ed3feed
commit
8b8316038b
38 changed files with 1979 additions and 1957 deletions
|
|
@ -98,8 +98,8 @@ public:
|
|||
return 1024;
|
||||
}
|
||||
|
||||
const String open (const BitArray& inputChannels,
|
||||
const BitArray& outputChannels,
|
||||
const String open (const BigInteger& inputChannels,
|
||||
const BigInteger& outputChannels,
|
||||
double sampleRate,
|
||||
int bufferSize)
|
||||
{
|
||||
|
|
@ -178,12 +178,12 @@ public:
|
|||
return 16;
|
||||
}
|
||||
|
||||
const BitArray getActiveOutputChannels() const
|
||||
const BigInteger getActiveOutputChannels() const
|
||||
{
|
||||
return activeOutputChans;
|
||||
}
|
||||
|
||||
const BitArray getActiveInputChannels() const
|
||||
const BigInteger getActiveInputChannels() const
|
||||
{
|
||||
return activeInputChans;
|
||||
}
|
||||
|
|
@ -251,7 +251,7 @@ private:
|
|||
AudioUnit audioUnit;
|
||||
UInt32 audioInputIsAvailable;
|
||||
AudioIODeviceCallback* callback;
|
||||
BitArray activeOutputChans, activeInputChans;
|
||||
BigInteger activeOutputChans, activeInputChans;
|
||||
|
||||
AudioSampleBuffer floatData;
|
||||
float* inputChannels[3];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue