Home
last modified time | relevance | path

Searched refs:sampleRate (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/libs/audioflinger/
DAudioDumpInterface.cpp55 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
64 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
68 lRate = outFinal->sampleRate(); in openOutputStream()
84 if (sampleRate != 0 && *sampleRate != 0) { in openOutputStream()
85 lRate = *sampleRate; in openOutputStream()
122 uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) in openInputStream() argument
131 …inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
136 lRate = inFinal->sampleRate(); in openInputStream()
140 if (sampleRate != 0 && *sampleRate != 0) lRate = *sampleRate; in openInputStream()
235 uint32_t sampleRate) in AudioStreamOutDump() argument
[all …]
DAudioHardwareStub.cpp46 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
49 status_t lStatus = out->set(format, channels, sampleRate); in openOutputStream()
65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument
74 status_t lStatus = in->set(format, channels, sampleRate, acoustics); in openInputStream()
123 if (pRate) *pRate = sampleRate(); in set()
131 usleep(bytes * 1000000 / sizeof(int16_t) / AudioSystem::popCount(channels()) / sampleRate()); in write()
146 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
172 usleep(bytes * 1000000 / sizeof(int16_t) / AudioSystem::popCount(channels()) / sampleRate()); in read()
184 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
DAudioHardwareGeneric.cpp66 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
80 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream()
100 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument
120 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream()
205 if (lRate == 0) lRate = sampleRate(); in set()
210 (lRate != sampleRate())) { in set()
213 if (pRate) *pRate = sampleRate(); in set()
250 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); in dump()
319 (*pRate != sampleRate())) { in set()
323 *pRate = sampleRate(); in set()
[all …]
DA2dpAudioInterface.h51 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount);
58 uint32_t *sampleRate=0,
66 uint32_t *sampleRate,
84 virtual uint32_t sampleRate() const { return 44100; } in sampleRate() function
89 …virtual uint32_t latency() const { return ((1000*bufferSize())/frameSize())/sampleRate() + 200;… in latency()
DAudioDumpInterface.h42 uint32_t sampleRate);
46 virtual uint32_t sampleRate() const;
83 uint32_t sampleRate);
86 virtual uint32_t sampleRate() const;
122 uint32_t *sampleRate=0,
145 uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics);
DA2dpAudioInterface.cpp60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
64 return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
78 if ((err = out->set(devices, format, channels, sampleRate)) == NO_ERROR) { in openOutputStream()
103 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, in openInputStream() argument
106 …return mHardwareInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
196 size_t A2dpAudioInterface::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) in getInputBufferSize() argument
198 return mHardwareInterface->getInputBufferSize(sampleRate, format, channelCount); in getInputBufferSize()
241 if (lRate == 0) lRate = sampleRate(); in set()
246 (lRate != sampleRate())){ in set()
249 if (pRate) *pRate = sampleRate(); in set()
[all …]
DAudioResampler.cpp38 AudioResamplerOrder1(int bitDepth, int inChannelCount, int32_t sampleRate) : in AudioResamplerOrder1() argument
39 AudioResampler(bitDepth, inChannelCount, sampleRate), mX0L(0), mX0R(0) { in AudioResamplerOrder1()
78 int32_t sampleRate, int quality) { in create() argument
96 resampler = new AudioResamplerOrder1(bitDepth, inChannelCount, sampleRate); in create()
100 resampler = new AudioResamplerCubic(bitDepth, inChannelCount, sampleRate); in create()
104 resampler = new AudioResamplerSinc(bitDepth, inChannelCount, sampleRate); in create()
114 int32_t sampleRate) : in AudioResampler() argument
116 mSampleRate(sampleRate), mInSampleRate(sampleRate), mInputIndex(0), in AudioResampler()
DAudioHardwareStub.h33 virtual uint32_t sampleRate() const { return 44100; } in sampleRate() function
49 virtual uint32_t sampleRate() const { return 8000; } in sampleRate() function
79 uint32_t *sampleRate=0,
87 uint32_t *sampleRate,
DAudioHardwareInterface.cpp148 size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) in getInputBufferSize() argument
150 if (sampleRate != 8000) { in getInputBufferSize()
151 LOGW("getInputBufferSize bad sampling rate: %d", sampleRate); in getInputBufferSize()
DAudioHardwareGeneric.h47 virtual uint32_t sampleRate() const { return 44100; } in sampleRate() function
80 virtual uint32_t sampleRate() const { return 8000; } in sampleRate() function
117 uint32_t *sampleRate=0,
125 uint32_t *sampleRate,
DAudioResampler.h45 int32_t sampleRate, int quality=DEFAULT);
67 AudioResampler(int bitDepth, int inChannelCount, int32_t sampleRate);
DAudioFlinger.h70 uint32_t sampleRate,
79 virtual uint32_t sampleRate(int output) const;
109 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount);
164 uint32_t sampleRate,
243 uint32_t sampleRate,
276 int sampleRate() const;
313 uint32_t sampleRate() const;
370 uint32_t sampleRate,
442 uint32_t sampleRate,
498 uint32_t sampleRate,
[all …]
DAudioMixer.h39 AudioMixer(size_t frameCount, uint32_t sampleRate);
149 uint32_t sampleRate; member
151 bool setResampler(uint32_t sampleRate, uint32_t devSampleRate);
DAudioFlinger.cpp266 uint32_t sampleRate, in createTrack() argument
304 track = thread->createTrack_l(client, streamType, sampleRate, format, in createTrack()
323 uint32_t AudioFlinger::sampleRate(int output) const in sampleRate() function in android::AudioFlinger
331 return thread->sampleRate(); in sampleRate()
616 size_t AudioFlinger::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) in getInputBufferSize() argument
618 return mAudioHardware->getInputBufferSize(sampleRate, format, channelCount); in getInputBufferSize()
743 uint32_t AudioFlinger::ThreadBase::sampleRate() const in sampleRate() function in android::AudioFlinger::ThreadBase
985 uint32_t sampleRate, in createTrack_l() argument
996 if (sampleRate != mSampleRate || format != mFormat || channelCount != mChannelCount) { in createTrack_l()
998 sampleRate, format, channelCount, mOutput); in createTrack_l()
[all …]
DAudioResamplerCubic.h31 AudioResamplerCubic(int bitDepth, int inChannelCount, int32_t sampleRate) : in AudioResamplerCubic() argument
32 AudioResampler(bitDepth, inChannelCount, sampleRate) { in AudioResamplerCubic()
/frameworks/base/media/libmedia/
DAudioRecord.cpp55 uint32_t sampleRate, in AudioRecord() argument
65 mStatus = set(inputSource, sampleRate, format, channels, in AudioRecord()
88 uint32_t sampleRate, in set() argument
99 LOGV("set(): sampleRate %d, channels %d, frameCount %d",sampleRate, channels, frameCount); in set()
108 if (sampleRate == 0) { in set()
109 sampleRate = DEFAULT_SAMPLE_RATE; in set()
127sampleRate, format, channels, (AudioSystem::audio_in_acoustics)flags); in set()
135 if (AudioSystem::getInputBufferSize(sampleRate, format, channelCount, &inputBuffSizeInBytes) in set()
143 sampleRate, channelCount, format); in set()
170 status_t status = openRecord(sampleRate, format, channelCount, in set()
[all …]
DAudioTrack.cpp55 uint32_t sampleRate, in AudioTrack() argument
65 mStatus = set(streamType, sampleRate, format, channels, in AudioTrack()
71 uint32_t sampleRate, in AudioTrack() argument
81 mStatus = set(streamType, sampleRate, format, channels, in AudioTrack()
106 uint32_t sampleRate, in set() argument
142 if (sampleRate == 0) { in set()
143 sampleRate = afSampleRate; in set()
171 sampleRate, format, channels, (AudioSystem::output_flags)flags); in set()
187 int minFrameCount = (afFrameCount*sampleRate*minBufCount)/afSampleRate; in set()
218 status_t status = createTrack(streamType, sampleRate, format, channelCount, in set()
[all …]
DIMediaPlayerService.cpp165 uint32_t sampleRate; in onTransact() local
168 sp<IMemory> player = decode(url, &sampleRate, &numChannels, &format); in onTransact()
169 reply->writeInt32(sampleRate); in onTransact()
180 uint32_t sampleRate; in onTransact() local
183 sp<IMemory> player = decode(fd, offset, length, &sampleRate, &numChannels, &format); in onTransact()
184 reply->writeInt32(sampleRate); in onTransact()
DIAudioFlinger.cpp77 uint32_t sampleRate, in createTrack() argument
91 data.writeInt32(sampleRate); in createTrack()
114 uint32_t sampleRate, in openRecord() argument
126 data.writeInt32(sampleRate); in openRecord()
144 virtual uint32_t sampleRate(int output) const in sampleRate() function in android::BpAudioFlinger
325 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount) in getInputBufferSize() argument
329 data.writeInt32(sampleRate); in getInputBufferSize()
482 uint32_t sampleRate = data.readInt32(); in onTransact() local
491 streamType, sampleRate, format, in onTransact()
501 uint32_t sampleRate = data.readInt32(); in onTransact() local
[all …]
/frameworks/base/core/java/android/speech/srec/
DMicrophoneInputStream.java46 public MicrophoneInputStream(int sampleRate, int fifoDepth) throws IOException { in MicrophoneInputStream() argument
47 mAudioRecord = AudioRecordNew(sampleRate, fifoDepth); in MicrophoneInputStream()
105 private static native int AudioRecordNew(int sampleRate, int fifoDepth); in AudioRecordNew() argument
DWaveHeader.java73 …public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numByt… in WaveHeader() argument
75 mSampleRate = sampleRate; in WaveHeader()
132 public WaveHeader setSampleRate(int sampleRate) { in setSampleRate() argument
133 mSampleRate = sampleRate; in setSampleRate()
/frameworks/base/include/media/
DAudioTrack.h134 uint32_t sampleRate = 0,
153 uint32_t sampleRate = 0,
176 uint32_t sampleRate = 0,
248 status_t setSampleRate(int sampleRate);
395 uint32_t sampleRate,
DIAudioFlinger.h47 uint32_t sampleRate,
59 uint32_t sampleRate,
69 virtual uint32_t sampleRate(int output) const = 0;
110 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount) = 0;
DAudioRecord.h138 uint32_t sampleRate = 0,
163 uint32_t sampleRate = 0,
317 status_t openRecord(uint32_t sampleRate,
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp428 uint32_t sampleRate; in doLoad() local
434 p = MediaPlayer::decode(mUrl, &sampleRate, &numChannels, &format); in doLoad()
436 p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format); in doLoad()
446 p->pointer(), p->size(), sampleRate, numChannels); in doLoad()
448 if (sampleRate > kMaxSampleRate) { in doLoad()
449 LOGE("Sample rate (%u) out of range", sampleRate); in doLoad()
464 mSampleRate = sampleRate; in doLoad()
503 uint32_t sampleRate = uint32_t(float(sample->sampleRate()) * rate + 0.5); in play() local
504 uint32_t bufferFrames = (afFrameCount * sampleRate) / afSampleRate; in play()
530 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
[all …]

12