Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. public byte[] ReadWave() {
  2.             fs = GetFileStream();
  3.             br = new BinaryReader(fs);
  4.  
  5.             // making new empty byteArray to write the audio file in
  6.             byteArray = new byte[fs.Length];
  7.  
  8.             // filling the byteArray
  9.             br.Read(byteArray, 0, byteArray.Length);
  10.  
  11.             // close the streams
  12.             br.Close();
  13.             fs.Close();
  14.  
  15.             return byteArray;
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement