EZAudio - How to change waveform size same according to size of the view using EZAudioPlotGL

471 views Asked by At

I am using the EZAudio library for iOS to handle the playback of an audio file and generate its waveform.

I'd like to create the view with the entire waveform using the EZAudioPlotGL view which is a subclass of UIView.

Can anyone help me to increase the size of the wave as the view size using EZAudioPlotGL.

2

There are 2 answers

0
Ryan Francesconi On

Assuming the plot was added to your view... Something like this:

plot.setFrameSize( self.bounds.size )
0
Loganathan On

Just increase the gain value like below.

objectOfEZAudioPlotGL.gain = 2.0f; //default gain value is 1.0f