Browse Source

Removed unused variable from AlsaSound.cpp.

David Piuva 8 months ago
parent
commit
73ed86cc59
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Source/soundManagers/AlsaSound.cpp

+ 0 - 2
Source/soundManagers/AlsaSound.cpp

@@ -10,7 +10,6 @@
 namespace dsr {
 namespace dsr {
 
 
 static snd_pcm_t *pcm = nullptr;
 static snd_pcm_t *pcm = nullptr;
-static int bufferElements = 0;
 static Buffer outputBuffer, floatBuffer;
 static Buffer outputBuffer, floatBuffer;
 static SafePointer<int16_t> outputData;
 static SafePointer<int16_t> outputData;
 static SafePointer<float> floatData;
 static SafePointer<float> floatData;
@@ -20,7 +19,6 @@ static void allocateBuffers(int neededElements) {
 	floatBuffer = buffer_create(neededElements * sizeof(float));
 	floatBuffer = buffer_create(neededElements * sizeof(float));
 	outputData = buffer_getSafeData<int16_t>(outputBuffer, "Output data");
 	outputData = buffer_getSafeData<int16_t>(outputBuffer, "Output data");
 	floatData = buffer_getSafeData<float>(floatBuffer, "Output data");
 	floatData = buffer_getSafeData<float>(floatBuffer, "Output data");
-	bufferElements = neededElements;
 }
 }
 
 
 static void terminateSound() {
 static void terminateSound() {