0

i want to print debug and see what is contained in this byte.

code is here

SoundEffect sound = new SoundEffect(stream.ToArray(), microphone.SampleRate, AudioChannels.Mono);
dcastro
  • 66,540
  • 21
  • 145
  • 155
user3529738
  • 83
  • 1
  • 9

1 Answers1

0

To display the data you could use the BitConverter class.

string s = BitConverter.ToString(stream);
LMS
  • 66
  • 4
  • how can i make it a json array? so how the 's' will be an array? http://stackoverflow.com/questions/20706783/put-byte-array-to-json-and-vice-versa can you change it for this case – user3529738 Apr 17 '14 at 10:36
  • Byte from string works like this: `Encoding.GetBytes` – LMS Apr 17 '14 at 18:25