Searched refs:sampleRate (Results 1 - 25 of 162) sorted by relevance

1234567

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioSample.java21 public final int sampleRate; field in class:AudioSample
25 public AudioSample(int sampleRate, int channelCount, byte[] bytes) { argument
26 this.sampleRate = 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 DAudioShelvingFilter.h50 // sampleRate The input/output sample rate, in Hz.
51 AudioShelvingFilter(ShelfType type, int nChannels, int sampleRate);
56 // sampleRate The input/output sample rate, in Hz.
57 void configure(int nChannels, int sampleRate);
H A DAudioEqualizer.h70 // sampleRate The input/output sample rate, in Hz.
81 int sampleRate,
88 // sampleRate The input/output sample rate, in Hz.
89 void configure(int nChannels, int sampleRate);
232 // sampleRate The input/output sample rate, in Hz.
240 AudioEqualizer(void * pMem, int nBands, int nChannels, int 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...]
H A DAudioBiquadFilter.h44 // sampleRate Sample rate, in Hz.
45 AudioBiquadFilter(int nChannels, int sampleRate);
49 // sampleRate Sample rate, in Hz.
50 void configure(int nChannels, int sampleRate);
H A DAudioPeakingFilter.h43 // sampleRate The input/output sample rate, in Hz.
44 AudioPeakingFilter(int nChannels, int sampleRate);
49 // sampleRate The input/output sample rate, in Hz.
50 void configure(int nChannels, int sampleRate);
/frameworks/av/services/oboeservice/
H A DTimestampScheduler.h52 int32_t sampleRate) {
53 mBurstPeriod = AAUDIO_NANOS_PER_SECOND * framesPerBurst / sampleRate;
51 setBurstPeriod(int32_t framesPerBurst, int32_t sampleRate) argument
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbitenc.h35 Word32 sampleRate; member in struct:BITSTREAMENCODER_INIT
H A Dpsy_main.h50 Word32 sampleRate,
67 Word32 sampleRate);
/frameworks/av/media/libstagefright/codecs/common/include/
H A DvoAAC.h45 int sampleRate; /*! audio file sample rate */ member in struct:__anon557
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAudioConfig.java35 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) { argument
36 mSampleRate = sampleRate;
70 int sampleRate = in.readInt();
73 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat);
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioCodec.h29 virtual int set(int sampleRate, const char *fmtp) = 0;
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;
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Daacenc_core.c89 config.sampleRate,
110 qcInit.averageBits = (Word16) ((config.bitRate * FRAME_LEN_LONG) / config.sampleRate);
112 qcInit.padding.paddingRest = config.sampleRate;
115 (config.sampleRate>>1));
129 hAacEnc->bseInit.sampleRate = config.sampleRate;
171 aacEnc->config.sampleRate);
176 aacEnc->config.sampleRate);
H A Daacenc.c148 config.sampleRate = 44100;
280 pOutInfo->Format.SampleRate = hAacEnc->config.sampleRate;
340 config.sampleRate = pAAC_param->sampleRate;
351 if(config.sampleRate == sampRateTab[i])
363 if(config.sampleRate%8000 == 0)
368 (config.bitRate > config.sampleRate*6*config.nChannelsOut)))
370 config.bitRate = 640*config.sampleRate/tmp*config.nChannelsOut;
374 else if(config.bitRate > config.sampleRate*6*config.nChannelsOut)
375 config.bitRate = config.sampleRate*
[all...]
H A Dpsy_configuration.c39 Word32 sampleRate; member in struct:__anon497
69 Word32 GetSRIndex(Word32 sampleRate) argument
71 if (92017 <= sampleRate) return 0;
72 if (75132 <= sampleRate) return 1;
73 if (55426 <= sampleRate) return 2;
74 if (46009 <= sampleRate) return 3;
75 if (37566 <= sampleRate) return 4;
76 if (27713 <= sampleRate) return 5;
77 if (23004 <= sampleRate) return 6;
78 if (18783 <= sampleRate) retur
[all...]
/frameworks/av/media/libaudioprocessing/tests/
H A Dtest_utils.h194 size_t channels, double sampleRate, double freq)
196 double tscale = 1. / sampleRate;
218 size_t channels, double sampleRate, double minfreq, double maxfreq)
220 double tscale = 1. / sampleRate;
256 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time) argument
258 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
264 double freq, double sampleRate, double time)
266 createBufferByFrames<T>(channels, sampleRate, sampleRate*tim
193 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument
217 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument
263 setSine(size_t channels, double freq, double sampleRate, double time) argument
290 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument
[all...]
/frameworks/av/media/libaaudio/tests/
H A Dtest_open_params.cpp59 int32_t sampleRate,
77 direction, channelCount, sampleRate, format);
84 AAudioStreamBuilder_setSampleRate(aaudioBuilder, sampleRate);
113 if (sampleRate != AAUDIO_UNSPECIFIED) {
114 EXPECT_EQ(sampleRate, actualSampleRate);
57 testOpenOptions(aaudio_direction_t direction, int32_t channelCount, int32_t sampleRate, aaudio_format_t format) argument
/frameworks/av/media/libnbaio/
H A DAudioStreamInSource.cpp50 uint32_t sampleRate; local
52 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat);
54 mFormat = Format_from_SR_C(sampleRate,
H A DAudioStreamOutSink.cpp47 uint32_t sampleRate; local
49 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat);
51 mFormat = Format_from_SR_C(sampleRate,
/frameworks/av/media/libaudioprocessing/
H A DAudioResampler.cpp45 AudioResamplerOrder1(int inChannelCount, int32_t sampleRate) : argument
46 AudioResampler(inChannelCount, sampleRate, LOW_QUALITY), mX0L(0), mX0R(0) {
151 int32_t sampleRate, src_quality quality) {
222 resampler = new AudioResamplerOrder1(inChannelCount, sampleRate);
227 resampler = new AudioResamplerCubic(inChannelCount, sampleRate);
232 resampler = new AudioResamplerSinc(inChannelCount, sampleRate);
237 resampler = new AudioResamplerSinc(inChannelCount, sampleRate, quality);
245 sampleRate, quality);
250 sampleRate, quality);
253 sampleRate, qualit
150 create(audio_format_t format, int inChannelCount, int32_t sampleRate, src_quality quality) argument
264 AudioResampler(int inChannelCount, int32_t sampleRate, src_quality quality) argument
[all...]
/frameworks/av/media/libaaudio/src/binding/
H A DAAudioStreamConfiguration.h49 void setSampleRate(int32_t sampleRate) { argument
50 mSampleRate = sampleRate;

Completed in 2898 milliseconds

1234567