Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

change playback speed of audio in Xamarin Android MediaPlayer

I want to change the speed of the audio playing back in a MediaPlayer. I am in a Xamarin Android project in Visual Studio Community 2017

In Stackoverflow a guy is saying that in Android you can do it this way:

    MediaPlayer mp = ...; //Whatever
    float speed = 0.75f;     
    mp.setPlaybackParams(mp.getPlaybackParams().setSpeed(speed));

But I can't find the parallel way to do that in Xamarin Android.

I found the AudioAttributes class but that doesn't seem to include slowing down the playback.

Thanks

Tagged:

Best Answer

Answers

Sign In or Register to comment.