iphone Programming Glossary: centerleft
Drawing waveform with AVAssetReader http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader context rect CGContextSetLineWidth context 1.0 float halfGraphHeight imageHeight 2 float channelCount float centerLeft halfGraphHeight float centerRight halfGraphHeight 3 float sampleAdjustmentFactor imageHeight float channelCount float normalizeMax.. SInt16 left samples float pixels float left pixels sampleAdjustmentFactor CGContextMoveToPoint context intSample centerLeft pixels CGContextAddLineToPoint context intSample centerLeft pixels CGContextSetStrokeColorWithColor context leftcolor CGContextStrokePath.. CGContextMoveToPoint context intSample centerLeft pixels CGContextAddLineToPoint context intSample centerLeft pixels CGContextSetStrokeColorWithColor context leftcolor CGContextStrokePath context if channelCount 2 SInt16 right samples..
|