根据C++版的改编,刚刚改完,估计使用会有问题,对于uint8处理的不好 关于使用: BitStream bs = new BitStream( ); bs.WriteInt32( ); int a = bs.ReadInt32( ); 非常简单 BitStream.cs public class BitStream { #if __BITSTREAM_BIG_END // Set up the read/write routines to produce Big-End network str
转自:http://blog.chinaunix.net/uid-9185047-id-3327302.html Somehow i remember that normally 2048 samples refer as a frame. PCM data generally is PCM16, that means one sample is 2 bytes, so one frame is 4096 bytes.
摘抄雷兄 http://blog.csdn.net/leixiaohua1020/article/details/46890259 /** * 最简单的SDL2播放音频的例子(SDL2播放PCM) * Simplest Audio Play SDL2 (SDL2 play PCM) * * 雷霄骅 Lei Xiaohua * leixiaohua1020@126.com * 中国传媒大学/数字电视技术 * Communication University of China / Digital T
Android.media package里包含声音录放的两个类AudioRecord和AudioTrack.前者用来录制,后者用来播放. 配置 pcm: int channel = AudioFormat.CHANNEL_IN_MONO ; int format = AudioFormat.ENCODING_PCM_16BIT; int sampleRate = 8000 ; int minBufferSize = AudioRecord.getMinBufferSize ( sampleRa