Browse Source

Update audio mixed processor (#4214)

* updated audio mixed processor

* remove float cast, better parenthesis
Anthony Carbajal 1 year ago
parent
commit
4b84b5563e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/audio/audio_mixed_processor.c

+ 1 - 1
examples/audio/audio_mixed_processor.c

@@ -97,7 +97,7 @@ int main(void)
             DrawRectangle(199, 199, 402, 34, LIGHTGRAY);
             DrawRectangle(199, 199, 402, 34, LIGHTGRAY);
             for (int i = 0; i < 400; i++)
             for (int i = 0; i < 400; i++)
             {
             {
-                DrawLine(201 + i, 232 - (int)averageVolume[i] * 32, 201 + i, 232, MAROON);
+                DrawLine(201 + i, 232 - (averageVolume[i] * 32), 201 + i, 232, MAROON);
             }
             }
             DrawRectangleLines(199, 199, 402, 34, GRAY);
             DrawRectangleLines(199, 199, 402, 34, GRAY);