changeset 105:490e955a21f8

correct indentation
author lbajardsilogic
date Tue, 04 Sep 2007 07:54:09 +0000
parents 40effd83ebcf
children d94ee3e8dfe1
files sv/audioio/AudioCallbackPlaySource.cpp
diffstat 1 files changed, 24 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/sv/audioio/AudioCallbackPlaySource.cpp	Thu Jul 12 15:06:41 2007 +0000
+++ b/sv/audioio/AudioCallbackPlaySource.cpp	Tue Sep 04 07:54:09 2007 +0000
@@ -760,12 +760,12 @@
 AudioCallbackPlaySource::getSourceSamples(size_t count, float **buffer)
 {
     if (!m_playing) {
-	for (size_t ch = 0; ch < getTargetChannelCount(); ++ch) {
-	    for (size_t i = 0; i < count; ++i) {
-		buffer[ch][i] = 0.0;
-	    }
-	}
-	return 0;
+		for (size_t ch = 0; ch < getTargetChannelCount(); ++ch) {
+			for (size_t i = 0; i < count; ++i) {
+				buffer[ch][i] = 0.0;
+			}
+		}
+		return 0;
     }
 
     // Ensure that all buffers have at least the amount of data we
@@ -801,39 +801,39 @@
 
     if (!ts || ts->getRatio() == 1) {
 
-	size_t got = 0;
+		size_t got = 0;
 
-	for (size_t ch = 0; ch < getTargetChannelCount(); ++ch) {
+		for (size_t ch = 0; ch < getTargetChannelCount(); ++ch) {
 
-	    RingBuffer<float> *rb = getReadRingBuffer(ch);
+			RingBuffer<float> *rb = getReadRingBuffer(ch);
 
-	    if (rb) {
+			if (rb) {
 
-		// this is marginally more likely to leave our channels in
-		// sync after a processing failure than just passing "count":
-		size_t request = count;
-		if (ch > 0) request = got;
+				// this is marginally more likely to leave our channels in
+				// sync after a processing failure than just passing "count":
+				size_t request = count;
+				if (ch > 0) request = got;
 
-		got = rb->read(buffer[ch], request);
-	    
+				got = rb->read(buffer[ch], request);
+		    
 #ifdef DEBUG_AUDIO_PLAY_SOURCE_PLAYING
-		std::cout << "AudioCallbackPlaySource::getSamples: got " << got << " (of " << count << ") samples on channel " << ch << ", signalling for more (possibly)" << std::endl;
+				std::cout << "AudioCallbackPlaySource::getSamples: got " << got << " (of " << count << ") samples on channel " << ch << ", signalling for more (possibly)" << std::endl;
 #endif
-	    }
+			}
 
-	    for (size_t ch = 0; ch < getTargetChannelCount(); ++ch) {
-		for (size_t i = got; i < count; ++i) {
-		    buffer[ch][i] = 0.0;
+			for (size_t ch = 0; ch < getTargetChannelCount(); ++ch) {
+				for (size_t i = got; i < count; ++i) {
+					buffer[ch][i] = 0.0;
+				}
+			}
 		}
-	    }
-	}
 
         applyAuditioningEffect(count, buffer);
 
 		applyRealTimeFilters(count, buffer);
 
         m_condition.wakeAll();
-	return got;
+		return got;
     }
 
     float ratio = ts->getRatio();