문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top