uwp AudioGraph audio processing

后端 未结 2 1459
予麋鹿
予麋鹿 2020-12-15 12:34

I am working on a winodws IoT project that controls a led strip based on an audio input. Now do I have some code that gets the audio in and writes it to a buffer with the Au

2条回答
  •  悲哀的现实
    2020-12-15 13:13

      dataInFloat = (float*)dataInBytes;
      float max = 0;
       for (int i = 0; i < graph.SamplesPerQuantum; i++)
                    {
                        max = Math.Max(Math.Abs(dataInFloat[i]), max);
    
                    }
    
                    finalLevel = max;
                    Debug.WriteLine(max);
    

提交回复
热议问题