Searched defs:sampleRate (Results 1 - 25 of 78) sorted by relevance

1234

/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbitenc.h35 Word32 sampleRate; member in struct:BITSTREAMENCODER_INIT
H A Daacenc_core.h40 Word32 sampleRate; /* audio file sample rate */ member in struct:__anon515
/frameworks/av/media/libstagefright/codecs/common/include/
H A DvoAAC.h45 int sampleRate; /*! audio file sample rate */ member in struct:__anon634
/frameworks/av/media/libnbaio/
H A DAudioStreamInSource.cpp47 uint32_t sampleRate = mStream->common.get_sample_rate(&mStream->common); local
50 mFormat = Format_from_SR_C(sampleRate, popcount(channelMask));
H A DAudioStreamOutSink.cpp44 uint32_t sampleRate = mStream->common.get_sample_rate(&mStream->common); local
47 mFormat = Format_from_SR_C(sampleRate, popcount(channelMask));
H A DNBAIO.cpp85 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount) argument
87 if (sampleRate == 44100 && channelCount == 2) return Format_SR44_1_C2_I16;
88 if (sampleRate == 48000 && channelCount == 2) return Format_SR48_C2_I16;
89 if (sampleRate == 44100 && channelCount == 1) return Format_SR44_1_C1_I16;
90 if (sampleRate == 48000 && channelCount == 1) return Format_SR48_C1_I16;
/frameworks/base/voip/jni/rtp/
H A DGsmCodec.cpp42 int set(int sampleRate, const char *fmtp) { argument
43 return (sampleRate == 8000 && mEncode && mDecode) ? 160 : -1;
H A DG711Codec.cpp37 int set(int sampleRate, const char *fmtp) { argument
38 mSampleCount = sampleRate / 50;
88 int set(int sampleRate, const char *fmtp) { argument
89 mSampleCount = sampleRate / 50;
H A DAmrCodec.cpp53 int set(int sampleRate, const char *fmtp);
67 int AmrCodec::set(int sampleRate, const char *fmtp) argument
97 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1;
211 int set(int sampleRate, const char *fmtp) { argument
212 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1;
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp12 SineSource::SineSource(int32_t sampleRate, int32_t numChannels) argument
14 mSampleRate(sampleRate),
H A DSimplePlayer.cpp581 int32_t sampleRate; local
583 CHECK(format->findInt32("sample-rate", &sampleRate));
587 sampleRate,
/frameworks/av/media/libeffects/testlibs/
H A DAudioPeakingFilter.cpp44 AudioPeakingFilter::AudioPeakingFilter(int nChannels, int sampleRate) argument
45 : mBiquad(nChannels, sampleRate) {
46 configure(nChannels, sampleRate);
50 void AudioPeakingFilter::configure(int nChannels, int sampleRate) { argument
51 mNiquistFreq = sampleRate * 500;
53 mBiquad.configure(nChannels, sampleRate);
H A DAudioShelvingFilter.cpp50 int sampleRate)
52 mBiquad(nChannels, sampleRate) {
53 configure(nChannels, sampleRate);
56 void AudioShelvingFilter::configure(int nChannels, int sampleRate) { argument
57 mNiquistFreq = sampleRate * 500;
59 mBiquad.configure(nChannels, sampleRate);
49 AudioShelvingFilter(ShelfType type, int nChannels, int sampleRate) argument
H A DAudioBiquadFilter.cpp28 AudioBiquadFilter::AudioBiquadFilter(int nChannels, int sampleRate) { argument
29 configure(nChannels, sampleRate);
33 void AudioBiquadFilter::configure(int nChannels, int sampleRate) { argument
35 assert(sampleRate > 0);
39 / sampleRate;
H A DAudioEqualizer.cpp39 int nChannels, int sampleRate,
43 "sampleRate=%d, nPresets=%d)",
44 pMem, nBands, nChannels, sampleRate, nPresets);
54 return new (pMem) AudioEqualizer(pMem, nBands, nChannels, sampleRate,
58 void AudioEqualizer::configure(int nChannels, int sampleRate) { argument
59 ALOGV("AudioEqualizer::configure(nChannels=%d, sampleRate=%d)", nChannels,
60 sampleRate);
61 mpLowShelf->configure(nChannels, sampleRate);
63 mpPeakingFilters[i].configure(nChannels, sampleRate);
65 mpHighShelf->configure(nChannels, sampleRate);
38 CreateInstance(void * pMem, int nBands, int nChannels, int sampleRate, const PresetConfig * presets, int nPresets) argument
287 AudioEqualizer(void * pMem, int nBands, int nChannels, int sampleRate, bool ownMem, const PresetConfig * presets, int nPresets) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARawAudioAssembler.cpp134 int32_t sampleRate, numChannels; local
136 desc, &sampleRate, &numChannels);
138 format->setInt32(kKeySampleRate, sampleRate);
/frameworks/av/services/audioflinger/
H A DAudioResamplerCubic.h31 AudioResamplerCubic(int bitDepth, int inChannelCount, int32_t sampleRate) : argument
32 AudioResampler(bitDepth, inChannelCount, sampleRate, MED_QUALITY) {
/frameworks/base/core/java/android/speech/srec/
H A DMicrophoneInputStream.java42 * @param sampleRate sample rate of the microphone, typically 11025 or 8000.
43 * @param fifoDepth depth of the real time fifo, measured in sampleRate clock ticks.
46 public MicrophoneInputStream(int sampleRate, int fifoDepth) throws IOException { argument
47 mAudioRecord = AudioRecordNew(sampleRate, fifoDepth);
105 private static native int AudioRecordNew(int sampleRate, int fifoDepth); argument
/frameworks/av/media/libstagefright/
H A DAMRWriter.cpp91 int32_t sampleRate; local
94 CHECK(meta->findInt32(kKeySampleRate, &sampleRate));
95 CHECK_EQ(sampleRate, (isWide ? 16000 : 8000));
H A DVBRISeeker.cpp49 int sampleRate; local
50 if (!GetMPEGAudioFrameSize(tmp, &frameSize, &sampleRate)) {
70 numFrames * 1000000ll * (sampleRate >= 32000 ? 1152 : 576) / sampleRate;
H A DAACWriter.cpp210 static bool getSampleRateTableIndex(int sampleRate, uint8_t* tableIndex) { argument
220 if (sampleRate == kSampleRateTable[index]) {
222 sampleRate, index);
228 ALOGE("Sampling rate %d bps is not supported", sampleRate);
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java66 SynthesisPlaybackQueueItem(int streamType, int sampleRate, argument
78 mAudioTrack = new BlockingAudioTrack(streamType, sampleRate, audioFormat,
/frameworks/av/include/private/media/
H A DAudioTrackShared.h92 uint32_t sampleRate; member in struct:android::audio_track_cblk_t
/frameworks/av/libvideoeditor/vss/src/
H A DVideoEditorResampler.cpp79 M4OSA_Int32 sampleRate, M4OSA_Int32 quality) {
83 bitDepth, inChannelCount, sampleRate);
90 context->outSamplingRate = sampleRate;
78 LVAudioResamplerCreate(M4OSA_Int32 bitDepth, M4OSA_Int32 inChannelCount, M4OSA_Int32 sampleRate, M4OSA_Int32 quality) argument
/frameworks/av/media/libmedia/
H A DIMediaPlayerService.cpp182 uint32_t sampleRate; local
185 sp<IMemory> player = decode(url, &sampleRate, &numChannels, &format);
186 reply->writeInt32(sampleRate);
197 uint32_t sampleRate; local
200 sp<IMemory> player = decode(fd, offset, length, &sampleRate, &numChannels, &format);
201 reply->writeInt32(sampleRate);

Completed in 1923 milliseconds

1234