Searched refs:BUFFER_SIZE (Results 1 – 2 of 2) sorted by relevance
/development/ndk/platforms/android-14/samples/native-media/jni/ |
D | native-media-jni.c | 74 #define BUFFER_SIZE (PACKETS_PER_BUFFER*MPEG2_TS_PACKET_SIZE) macro 78 static char dataCache[BUFFER_SIZE * NB_BUFFERS]; 155 &dataCache[BUFFER_SIZE * NB_BUFFERS]); in AndroidBufferQueueCallback() 156 assert(0 == (((char *) pBufferData - dataCache) % BUFFER_SIZE)); in AndroidBufferQueueCallback() 166 bytesRead = fread(pBufferData, 1, BUFFER_SIZE, file); in AndroidBufferQueueCallback() 282 bytesRead = fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file); in enqueueInitialBuffers() 313 dataCache + i*BUFFER_SIZE, bufferSize, items /*pMsg*/, in enqueueInitialBuffers() 318 dataCache + i*BUFFER_SIZE, bufferSize, NULL, 0); in enqueueInitialBuffers()
|
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | SoundRecorder.java | 47 private static int BUFFER_SIZE = AudioRecord field in SoundRecorder 94 RECORDING_RATE, CHANNEL_IN, FORMAT, BUFFER_SIZE * 3); in startRecording() 99 byte[] buffer = new byte[BUFFER_SIZE]; in startRecording()
|