Home > Mobile >  Android Media. AudioRecord use
Android Media. AudioRecord use

Time:11-05

AudioRecord need to call the read method to read data, I use a byte [] to store the data read out
Now demand is: I want to win every time read data corresponding to the recording time, the data and the time to do a corresponding, subsequent to obtain the corresponding relation of frequency and time,

I use the sampling rate is 44100 hz, mono, PCM data length 16 bit, audiorecord object cache space is identified using getminxxx function, byte [] array length is 1024, I want to use these data directly calculate the time, but found a problem: I don't understand use the v () output byte array, I can only read 10 times per second, 10 * 1024 * 8 bit clearly and more than 44100 * 1 * 16 is poor, the amount of data ranging from ah,,,
  • Related