Update AudioFrame doxygen
authorKyungYoun <ky99.won@samsung.com>
Fri, 5 Apr 2013 02:26:13 +0000 (11:26 +0900)
committerKyungYoun <ky99.won@samsung.com>
Fri, 5 Apr 2013 02:26:13 +0000 (11:26 +0900)
Change-Id: I2ad91e4cf5f7ae68c880d78f3fc189684b6dd667
Signed-off-by: KyungYoun <ky99.won@samsung.com>
inc/FMediaAudioFrame.h

index 4055f8f..8fcbcdb 100755 (executable)
@@ -130,12 +130,19 @@ namespace Tizen { namespace Media
  *      return;
  *   }
  *   short* pSampleData = (short*)(frame.GetPlaneData(0)->GetPointer())
- *   int peakValue = 0;
- *   int sampleCount = frame.GetPlaneSize(0) / 2;
+ *   int minPeakValue = 0;
+ *   int maxPeakValue = 0;
+ *   int sampleCount = frame.GetPlaneData(0)->GetCapacity() / 2;
  *   for (int i = 0; i<sampleCount; i++)
  *   {
- *        if (pSampleData[i] >peakValue)
- *            peakValue = pSampleData[i];
+ *        if (pSampleData[i] < minPeakValue)
+ *        {
+ *            minPeakValue = pSampleData[i];
+ *        }
+ *        if (pSampleData[i] > maxPeakValue)
+ *        {
+ *            maxPeakValue = pSampleData[i];
+ *        }
  *   }
  * }
  *