1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

Updated VC6 project. Removed some unsafe templated casts from MemoryBlock and HeapBlock.

This commit is contained in:
Julian Storer 2010-02-25 18:31:06 +00:00
parent 84a8695561
commit bc5a7a6b7e
44 changed files with 438 additions and 253 deletions

View file

@ -234,7 +234,7 @@ public:
if (isInterleaved)
{
scratch.ensureSize (sizeof (float) * numSamples * numChannelsRunning, false);
float* interleaved = (float*) scratch;
float* interleaved = reinterpret_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 = (float*) scratch;
float* interleaved = reinterpret_cast <float*> (scratch.getData());
snd_pcm_sframes_t num = snd_pcm_readi (handle, (void*) interleaved, numSamples);