Skip to main content
Improved formatting
Source Link
Tyler2P
  • 2.4k
  • 30
  • 25
  • 32

Stream myaudio=File.OpenRead("full path to the audio");

Var player=Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current;

player.Load(myaudio);//make sure this argument is a stream. A string will not play

Player.Play();

Stream myaudio = File.OpenRead("full path to the audio");

Var player = Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current;

player.Load(myaudio); // make sure this argument is a stream. A string will not play

Player.Play();

Stream myaudio=File.OpenRead("full path to the audio");

Var player=Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current;

player.Load(myaudio);//make sure this argument is a stream. A string will not play

Player.Play();

Stream myaudio = File.OpenRead("full path to the audio");

Var player = Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current;

player.Load(myaudio); // make sure this argument is a stream. A string will not play

Player.Play();
Source Link

Stream myaudio=File.OpenRead("full path to the audio");

Var player=Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current;

player.Load(myaudio);//make sure this argument is a stream. A string will not play

Player.Play();