mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor tidying up
This commit is contained in:
parent
0f103ac7e7
commit
cfc85445b5
5 changed files with 8 additions and 8 deletions
|
|
@ -391,9 +391,9 @@ private:
|
|||
// Setting nullptr callback is allowed only when playback is stopped.
|
||||
jassert (callbackToUse != nullptr);
|
||||
|
||||
while (true)
|
||||
for (;;)
|
||||
{
|
||||
AudioIODeviceCallback* old = callback.get();
|
||||
auto old = callback.get();
|
||||
|
||||
if (old == callbackToUse)
|
||||
break;
|
||||
|
|
@ -409,7 +409,7 @@ private:
|
|||
void process (const float** inputChannelData, int numInputChannels,
|
||||
float** outputChannelData, int numOutputChannels, int32_t numFrames)
|
||||
{
|
||||
if (AudioIODeviceCallback* cb = callback.exchange (nullptr))
|
||||
if (auto* cb = callback.exchange (nullptr))
|
||||
{
|
||||
cb->audioDeviceIOCallback (inputChannelData, numInputChannels,
|
||||
outputChannelData, numOutputChannels, numFrames);
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ private:
|
|||
|
||||
void run() override
|
||||
{
|
||||
while (true)
|
||||
for (;;)
|
||||
{
|
||||
MessageManager::MessageBase::Ptr message (queue.removeAndReturn (0));
|
||||
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ private:
|
|||
auto buffer = LocalRef<jbyteArray> (env->NewByteArray (1024));
|
||||
int bytesRead = 0;
|
||||
|
||||
while (true)
|
||||
for (;;)
|
||||
{
|
||||
if (threadShouldExit())
|
||||
return {};
|
||||
|
|
|
|||
|
|
@ -339,13 +339,13 @@ private:
|
|||
{
|
||||
MemoryOutputStream ostream;
|
||||
|
||||
while (true)
|
||||
for (;;)
|
||||
{
|
||||
if (threadShouldExit())
|
||||
return;
|
||||
|
||||
char buffer [8192];
|
||||
const int num = webInputStream->read (buffer, sizeof (buffer));
|
||||
auto num = webInputStream->read (buffer, sizeof (buffer));
|
||||
|
||||
if (num <= 0)
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public:
|
|||
|
||||
void tryNextRead()
|
||||
{
|
||||
while (true)
|
||||
for (;;)
|
||||
{
|
||||
size_t len = (receivingLength ? sizeof (size_t) : bufferLength.len);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue