HomeSort by relevance Sort by last modified time
    Searched refs:audioRecord (Results 1 - 4 of 4) sorted by null

  /external/srec/srec_jni/
android_speech_srec_MicrophoneInputStream.cpp 28 #include <media/AudioRecord.h>
61 AudioRecordWrapper(AudioRecord *audioRecord) : mAudioRecord(audioRecord) { }
63 AudioRecord* get() const { return mAudioRecord.get(); }
65 const sp<AudioRecord> mAudioRecord;
71 AudioRecordWrapper *ar = new AudioRecordWrapper(new AudioRecord(
85 (JNIEnv *env, jclass clazz, jint audioRecord) {
86 return (int)(((AudioRecordWrapper*)audioRecord)->get()->start());
90 (JNIEnv *env, jclass clazz, jint audioRecord, jbyteArray array, jint offset, jint length)
    [all...]
  /frameworks/base/core/java/android/speech/srec/
MicrophoneInputStream.java 48 if (mAudioRecord == 0) throw new IOException("AudioRecord constructor failed - busy?");
52 throw new IOException("AudioRecord start failed: " + status);
103 // AudioRecord JNI interface
106 private static native int AudioRecordStart(int audioRecord);
107 private static native int AudioRecordRead(int audioRecord, byte[] b, int offset, int length) throws IOException;
108 private static native void AudioRecordStop(int audioRecord) throws IOException;
109 private static native void AudioRecordDelete(int audioRecord) throws IOException;
  /frameworks/av/include/media/
AudioRecord.h 34 class AudioRecord : public RefBase
38 /* Events used by AudioRecord callback function (callback_t).
39 * Keep in sync with frameworks/base/media/java/android/media/AudioRecord.java NATIVE_EVENT_*.
82 * event: type of event notified (see enum AudioRecord::event_type).
85 * - EVENT_MORE_DATA: pointer to AudioRecord::Buffer struct. The callback must not read
97 * an AudioRecord object.
109 /* How data is transferred from AudioRecord
118 /* Constructs an uninitialized AudioRecord. No connection with
121 AudioRecord();
123 /* Creates an AudioRecord object and registers it with AudioFlinger
    [all...]
  /frameworks/av/media/libmedia/
AudioRecord.cpp 19 #define LOG_TAG "AudioRecord"
23 #include <media/AudioRecord.h>
34 status_t AudioRecord::getMinFrameCount(
73 AudioRecord::AudioRecord()
79 AudioRecord::AudioRecord(
100 AudioRecord::~AudioRecord()
109 mAudioRecordThread->requestExit(); // see comment in AudioRecord.
    [all...]

Completed in 3151 milliseconds