mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Minor code clean-ups.
This commit is contained in:
parent
db08236375
commit
b67c077f0d
54 changed files with 441 additions and 363 deletions
|
|
@ -234,7 +234,7 @@ public:
|
|||
if (isInterleaved)
|
||||
{
|
||||
scratch.ensureSize (sizeof (float) * numSamples * numChannelsRunning, false);
|
||||
float* interleaved = reinterpret_cast <float*> (scratch.getData());
|
||||
float* interleaved = static_cast <float*> (scratch.getData());
|
||||
|
||||
AudioDataConverters::interleaveSamples ((const float**) data, interleaved, numSamples, numChannelsRunning);
|
||||
AudioDataConverters::convertFloatToFormat (sampleFormat, interleaved, interleaved, numSamples * numChannelsRunning);
|
||||
|
|
@ -272,7 +272,7 @@ public:
|
|||
if (isInterleaved)
|
||||
{
|
||||
scratch.ensureSize (sizeof (float) * numSamples * numChannelsRunning, false);
|
||||
float* interleaved = reinterpret_cast <float*> (scratch.getData());
|
||||
float* interleaved = static_cast <float*> (scratch.getData());
|
||||
|
||||
snd_pcm_sframes_t num = snd_pcm_readi (handle, (void*) interleaved, numSamples);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue