shebinkoshy / SHAudioPlayer

SHAudioPlayer
MIT License
15 stars 5 forks source link

Enhancement #4

Open umairuas opened 4 years ago

umairuas commented 4 years ago

Hi, Can you please add speed feature with your player, Like user should be able to set speed of the player. For example 1x by default. 1.5x , 2x or 3x. Thanks for the quick response of my previous reply.

umairuas commented 4 years ago

After some research I summarised my question. Allow us to change the below two values if you are using AVAudioPlayer. 1 - player.enableRate 2 - player.rate That's it.

umairuas commented 4 years ago

Done bro. Need your help here.

shebinkoshy commented 4 years ago

@umairuas You can achieve it using your own logic by using player.sliderValueChanged(slider: slider)

But, we would like to know your usage of SHAudioPlayer.

  1. Are you using the player to stream from network or local or both?
  2. Your app require support for all the audio formats (mp3, m4a, etc)?
umairuas commented 4 years ago

I am streaming the audio. It will not smooth if i am going to use player.sliderValueChanged(slider: slider).

1- Yes i am streaming the audio. 2- Yes My app support mp3 and m4a only. Thanks for the quick response.