Ron
Ron

Reputation: 181

How many milliseconds is a byte of .WAV audio?

I broke out a .WAV file into a byte array. The audio is 16 bit, 1 channel, with a sampling rate of 44,100HZ.

Is there a way to calculate what one byte of data represents with respect to time?

Upvotes: 1

Views: 2861

Answers (1)

Brad
Brad

Reputation: 163468

One byte of 16 bit audio isn't anything. You need two bytes for a sample at 16-bit.

If you want to know how many milliseconds you have per sample...

1,000 (ms) / Frequency (Hz)

44.1kHz is ~0.0227ms per sample.

Upvotes: 4

Related Questions