开发者

Bit resolution / Bit depth of microphone channel in Flash

I need to figure out the bit depth / quantization / bit resolution of the microphone channel in Flash. Anybody out there, who knows that?开发者_如何学编程

The sampling rate is pretty simple - one can set/get it with Microphone.rate (to 5,8,16,22 or 44 KHz).

But no clue about the bit depth. It's not mentioned at any Adobe pages as far as I know. There's no function to set or get it.


I couldn't find any info on bit depth for this either, so I assume the bit depth is 16 (i.e. 2 bytes per sample).

This should be easy to determine experimentally by just recording sound into a WAV file and seeing how large the file is. The file size should be equal to:

fileSize = seconds * samplesPerSecond * bytesPerSample

So:

bytesPersample = fileSize / (seconds * samplesPerSecond)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜