0

I read a file and can play it

Me._StreamData = Application.GetResourceStream(New Uri("Sound/" & _WaveFile, UriKind.Relative)).Stream
                    Dim Wav As SoundEffect = SoundEffect.FromStream(strmAudio)

Now I've tried to modify the data. But I am not successfully. If I read the same file by using a IO.MemoryStream (I see there are the data included), the API fails on

Dim Wav As SoundEffect = SoundEffect.FromStream(strmAudio)

With error on strmAudio.

InvalidOperationException

As far as I see, the IO.Memorystream cannot be played, even if it has the Wave header included or not. Can you confirm or have I bad Wave header?

Community
  • 1
  • 1
Nasenbaer
  • 4,810
  • 11
  • 53
  • 86

0 Answers0