Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public byte[] ReadWave() {
- fs = GetFileStream();
- br = new BinaryReader(fs);
- // making new empty byteArray to write the audio file in
- byteArray = new byte[fs.Length];
- // filling the byteArray
- br.Read(byteArray, 0, byteArray.Length);
- // close the streams
- br.Close();
- fs.Close();
- return byteArray;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement