Streaming Audio

Open-source
img_xamarin

This sample illustrates how to use AudioToolbox’s AudioFileStream to parse an audio stream progressively and play the audio back.

The audio is a creative commons MP3 file that is downloaded from a website using Mono’s HTTP stack.

There are two samples:

  • One plays as it streams, and does not attempt to buffer more than the audio buffers that are used for AudioToolbox.
  • The second sample shows how to save a copy of the data as it is being downloaded (for example, a podcasting application would stream audio and retain a copy).

Streaming audio

streaming audio2

Author : https://github.com/olegoid.

If you like this tutorial then you can download full copy of the code from github

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">