dmrschmidt / DSWaveformImage

Generate waveform images from audio files on iOS, macOS & visionOS in Swift. Native SwiftUI & UIKit views.
MIT License
978 stars 109 forks source link

vertex and width #54

Closed ducduy20 closed 1 year ago

ducduy20 commented 1 year ago

how to make the width fit the view when the audio has peak

ducduy20 commented 1 year ago

I want to see the peak of the wave when the sound peaks with the point in the middle

dmrschmidt commented 1 year ago

Hey @ducduy20, do you maybe mean the height? For that, set the verticalScalingFactor to 0.5

if you really mean width, can you maybe draw how exactly you want it to behave?

ducduy20 commented 1 year ago

thanks @dmrschmidt . I fixed it, now I'm using it for my recording app