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

Removed the Component::getComponentUID() method, and slimmed down the component class implementation slightly.

This commit is contained in:
Julian Storer 2010-10-29 18:55:48 +01:00
parent 584d9a4ec0
commit dbdea7c6d4
9 changed files with 394 additions and 730 deletions

View file

@ -123,7 +123,8 @@ public:
bitDepth (16),
numChannelsRunning (0),
latency (0),
isInput (forInput)
isInput (forInput),
isInterleaved (true)
{
failed (snd_pcm_open (&handle, deviceID.toUTF8(),
forInput ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK,
@ -285,6 +286,7 @@ public:
if (isInterleaved)
{
scratch.ensureSize (sizeof (float) * numSamples * numChannelsRunning, false);
scratch.fillWith (0); // (not clearing this data causes warnings in valgrind)
snd_pcm_sframes_t num = snd_pcm_readi (handle, scratch.getData(), numSamples);