mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +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
|
|
@ -362,8 +362,8 @@ public:
|
|||
close();
|
||||
}
|
||||
|
||||
void open (BitArray inputChannels,
|
||||
BitArray outputChannels,
|
||||
void open (BigInteger inputChannels,
|
||||
BigInteger outputChannels,
|
||||
const double sampleRate_,
|
||||
const int bufferSize_)
|
||||
{
|
||||
|
|
@ -581,7 +581,7 @@ public:
|
|||
String error;
|
||||
double sampleRate;
|
||||
int bufferSize;
|
||||
BitArray currentInputChans, currentOutputChans;
|
||||
BigInteger currentInputChans, currentOutputChans;
|
||||
|
||||
Array <int> sampleRates;
|
||||
StringArray channelNamesOut, channelNamesIn;
|
||||
|
|
@ -704,8 +704,8 @@ public:
|
|||
return 512;
|
||||
}
|
||||
|
||||
const String open (const BitArray& inputChannels,
|
||||
const BitArray& outputChannels,
|
||||
const String open (const BigInteger& inputChannels,
|
||||
const BigInteger& outputChannels,
|
||||
double sampleRate,
|
||||
int bufferSizeSamples)
|
||||
{
|
||||
|
|
@ -760,12 +760,12 @@ public:
|
|||
return internal->getBitDepth();
|
||||
}
|
||||
|
||||
const BitArray getActiveOutputChannels() const
|
||||
const BigInteger getActiveOutputChannels() const
|
||||
{
|
||||
return internal->currentOutputChans;
|
||||
}
|
||||
|
||||
const BitArray getActiveInputChannels() const
|
||||
const BigInteger getActiveInputChannels() const
|
||||
{
|
||||
return internal->currentInputChans;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue