开发者

AudioRecord: bits per sample

开发者 https://www.devze.com 2023-03-07 10:58 出处:网络
AudioRecord has methods to get the data as byte[], short[] and ByteBuffer. I can\'t see anything in the documentation which says how many bits per sample开发者_Go百科 are used.

AudioRecord has methods to get the data as byte[], short[] and ByteBuffer.

I can't see anything in the documentation which says how many bits per sample开发者_Go百科 are used.

Can it record in 8 bits? 16 bits? More? (How is this determined/set?)

Can the method which returns byte[]/ByteBuffer be used for 16 bit samples, and how would the most significant byte / least significant byte be differentated?


Presumably this is what getAudioFormat() tells you...

0

精彩评论

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