| @@ -391,9 +391,9 @@ private: | |||||
| // Setting nullptr callback is allowed only when playback is stopped. | // Setting nullptr callback is allowed only when playback is stopped. | ||||
| jassert (callbackToUse != nullptr); | jassert (callbackToUse != nullptr); | ||||
| while (true) | |||||
| for (;;) | |||||
| { | { | ||||
| AudioIODeviceCallback* old = callback.get(); | |||||
| auto old = callback.get(); | |||||
| if (old == callbackToUse) | if (old == callbackToUse) | ||||
| break; | break; | ||||
| @@ -409,7 +409,7 @@ private: | |||||
| void process (const float** inputChannelData, int numInputChannels, | void process (const float** inputChannelData, int numInputChannels, | ||||
| float** outputChannelData, int numOutputChannels, int32_t numFrames) | float** outputChannelData, int numOutputChannels, int32_t numFrames) | ||||
| { | { | ||||
| if (AudioIODeviceCallback* cb = callback.exchange (nullptr)) | |||||
| if (auto* cb = callback.exchange (nullptr)) | |||||
| { | { | ||||
| cb->audioDeviceIOCallback (inputChannelData, numInputChannels, | cb->audioDeviceIOCallback (inputChannelData, numInputChannels, | ||||
| outputChannelData, numOutputChannels, numFrames); | outputChannelData, numOutputChannels, numFrames); | ||||
| @@ -94,7 +94,7 @@ private: | |||||
| void run() override | void run() override | ||||
| { | { | ||||
| while (true) | |||||
| for (;;) | |||||
| { | { | ||||
| MessageManager::MessageBase::Ptr message (queue.removeAndReturn (0)); | MessageManager::MessageBase::Ptr message (queue.removeAndReturn (0)); | ||||
| @@ -332,7 +332,7 @@ private: | |||||
| auto buffer = LocalRef<jbyteArray> (env->NewByteArray (1024)); | auto buffer = LocalRef<jbyteArray> (env->NewByteArray (1024)); | ||||
| int bytesRead = 0; | int bytesRead = 0; | ||||
| while (true) | |||||
| for (;;) | |||||
| { | { | ||||
| if (threadShouldExit()) | if (threadShouldExit()) | ||||
| return {}; | return {}; | ||||
| @@ -339,13 +339,13 @@ private: | |||||
| { | { | ||||
| MemoryOutputStream ostream; | MemoryOutputStream ostream; | ||||
| while (true) | |||||
| for (;;) | |||||
| { | { | ||||
| if (threadShouldExit()) | if (threadShouldExit()) | ||||
| return; | return; | ||||
| char buffer [8192]; | char buffer [8192]; | ||||
| const int num = webInputStream->read (buffer, sizeof (buffer)); | |||||
| auto num = webInputStream->read (buffer, sizeof (buffer)); | |||||
| if (num <= 0) | if (num <= 0) | ||||
| break; | break; | ||||
| @@ -57,7 +57,7 @@ public: | |||||
| void tryNextRead() | void tryNextRead() | ||||
| { | { | ||||
| while (true) | |||||
| for (;;) | |||||
| { | { | ||||
| size_t len = (receivingLength ? sizeof (size_t) : bufferLength.len); | size_t len = (receivingLength ? sizeof (size_t) : bufferLength.len); | ||||