Home
last modified time | relevance | path

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

12345678

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DAudioSample.java21 public final int sampleRate; field in AudioSample
25 public AudioSample(int sampleRate, int channelCount, byte[] bytes) { in AudioSample() argument
26 this.sampleRate = sampleRate; in AudioSample()
/frameworks/av/media/libeffects/testlibs/
DAudioShelvingFilter.cpp50 int sampleRate) in AudioShelvingFilter() argument
52 mBiquad(nChannels, sampleRate) { in AudioShelvingFilter()
53 configure(nChannels, sampleRate); in AudioShelvingFilter()
56 void AudioShelvingFilter::configure(int nChannels, int sampleRate) { in configure() argument
57 mNiquistFreq = sampleRate * 500; in configure()
59 mBiquad.configure(nChannels, sampleRate); in configure()
DAudioPeakingFilter.cpp44 AudioPeakingFilter::AudioPeakingFilter(int nChannels, int sampleRate) in AudioPeakingFilter() argument
45 : mBiquad(nChannels, sampleRate) { in AudioPeakingFilter()
46 configure(nChannels, sampleRate); in AudioPeakingFilter()
50 void AudioPeakingFilter::configure(int nChannels, int sampleRate) { in configure() argument
51 mNiquistFreq = sampleRate * 500; in configure()
53 mBiquad.configure(nChannels, sampleRate); in configure()
DAudioEqualizer.cpp39 int nChannels, int sampleRate, in CreateInstance() argument
44 pMem, nBands, nChannels, sampleRate, nPresets); in CreateInstance()
54 return new (pMem) AudioEqualizer(pMem, nBands, nChannels, sampleRate, in CreateInstance()
58 void AudioEqualizer::configure(int nChannels, int sampleRate) { in configure() argument
60 sampleRate); in configure()
61 mpLowShelf->configure(nChannels, sampleRate); in configure()
63 mpPeakingFilters[i].configure(nChannels, sampleRate); in configure()
65 mpHighShelf->configure(nChannels, sampleRate); in configure()
288 int sampleRate, bool ownMem, in AudioEqualizer() argument
290 : mSampleRate(sampleRate) in AudioEqualizer()
[all …]
DAudioEqualizer.h81 int sampleRate,
89 void configure(int nChannels, int sampleRate);
240 AudioEqualizer(void * pMem, int nBands, int nChannels, int sampleRate,
/frameworks/av/media/libaudioprocessing/tests/
Dtest_utils.h195 size_t channels, double sampleRate, double freq)
197 double tscale = 1. / sampleRate;
219 size_t channels, double sampleRate, double minfreq, double maxfreq)
221 double tscale = 1. / sampleRate;
257 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time)
259 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
265 double freq, double sampleRate, double time)
267 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
291 void createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames)
298 mSampleRate = sampleRate;
/frameworks/av/media/libmedia/include/media/
DJAudioFormat.h29 uint32_t sampleRate, in createAudioFormatObj() argument
37 if (sampleRate == 0) { in createAudioFormatObj()
41 sampleRate = env->GetStaticIntField(jAudioFormatCls, jSampleRateUnspecified); in createAudioFormatObj()
51 jBuilderObj = env->CallObjectMethod(jBuilderObj, jSetSampleRate, sampleRate); in createAudioFormatObj()
/frameworks/av/media/libaudioprocessing/
DAudioResampler.cpp45 AudioResamplerOrder1(int inChannelCount, int32_t sampleRate) : in AudioResamplerOrder1() argument
46 AudioResampler(inChannelCount, sampleRate, LOW_QUALITY), mX0L(0), mX0R(0) { in AudioResamplerOrder1()
151 int32_t sampleRate, src_quality quality) { in create() argument
222 resampler = new AudioResamplerOrder1(inChannelCount, sampleRate); in create()
227 resampler = new AudioResamplerCubic(inChannelCount, sampleRate); in create()
232 resampler = new AudioResamplerSinc(inChannelCount, sampleRate); in create()
237 resampler = new AudioResamplerSinc(inChannelCount, sampleRate, quality); in create()
245 sampleRate, quality); in create()
250 sampleRate, quality); in create()
253 sampleRate, quality); in create()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothAudioConfig.java35 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) { in BluetoothAudioConfig() argument
36 mSampleRate = sampleRate; in BluetoothAudioConfig()
70 int sampleRate = in.readInt();
73 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat);
DBluetoothCodecConfig.java158 @SampleRate int sampleRate, @BitsPerSample int bitsPerSample, in BluetoothCodecConfig() argument
164 mSampleRate = sampleRate; in BluetoothCodecConfig()
323 final int sampleRate = in.readInt();
331 sampleRate, bitsPerSample,
585 int sampleRate = other.mSampleRate; in similarCodecFeedingParameters() local
587 || sampleRate == BluetoothCodecConfig.SAMPLE_RATE_NONE) { in similarCodecFeedingParameters()
588 sampleRate = mSampleRate; in similarCodecFeedingParameters()
601 mCodecType, /* priority */ 0, sampleRate, bitsPerSample, channelMode, in similarCodecFeedingParameters()
/frameworks/av/media/libaudioclient/include/media/
DAudioTimestamp.h138 double getOutputServerLatencyMs(uint32_t sampleRate) const { in getOutputServerLatencyMs()
139 return getLatencyMs(sampleRate, LOCATION_SERVER, LOCATION_KERNEL); in getOutputServerLatencyMs()
142 double getLatencyMs(uint32_t sampleRate, Location location1, Location location2) const { in getLatencyMs()
143 if (sampleRate > 0 && mTimeNs[location1] > 0 && mTimeNs[location2] > 0) { in getLatencyMs()
148 return ((double)frameDifference * 1e9 / sampleRate - timeDifferenceNs) * 1e-6; in getLatencyMs()
/frameworks/av/media/libaaudio/tests/
Dtest_open_params.cpp44 int32_t sampleRate, in testOpenOptions() argument
61 direction, channelCount, sampleRate, format); in testOpenOptions()
68 AAudioStreamBuilder_setSampleRate(aaudioBuilder, sampleRate); in testOpenOptions()
97 if (sampleRate != AAUDIO_UNSPECIFIED) { in testOpenOptions()
98 EXPECT_EQ(sampleRate, actualSampleRate); in testOpenOptions()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp100 AudioCodec *codec, int sampleRate, int sampleCount,
104 bool mix(int32_t *output, int head, int tail, int sampleRate);
166 AudioCodec *codec, int sampleRate, int sampleCount, in set() argument
178 mSampleRate = sampleRate / 1000; in set()
234 bool AudioStream::mix(int32_t *output, int head, int tail, int sampleRate) in mix() argument
253 if (sampleRate == mSampleRate) { in mix()
485 bool set(int sampleRate, int sampleCount);
584 bool AudioGroup::set(int sampleRate, int sampleCount) in set() argument
592 mSampleRate = sampleRate; in set()
606 sampleRate, sampleCount, -1, -1)) { in set()
[all …]
DG711Codec.cpp37 int set(int sampleRate, const char */* fmtp */) { in set() argument
38 mSampleCount = sampleRate / 50; in set()
88 int set(int sampleRate, const char */* fmtp */) { in set() argument
89 mSampleCount = sampleRate / 50; in set()
DAmrCodec.cpp53 int set(int sampleRate, const char *fmtp);
67 int AmrCodec::set(int sampleRate, const char *fmtp) in set() argument
97 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1; in set()
211 int set(int sampleRate, const char */* fmtp */) { in set() argument
212 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1; in set()
/frameworks/av/media/libstagefright/rtsp/
DAPacketSource.cpp472 int32_t sampleRate, numChannels; in APacketSource() local
474 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
476 mFormat->setInt32(kKeySampleRate, sampleRate); in APacketSource()
488 int32_t sampleRate, numChannels; in APacketSource() local
490 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
492 mFormat->setInt32(kKeySampleRate, sampleRate); in APacketSource()
495 if (sampleRate != 8000 || numChannels != 1) { in APacketSource()
501 int32_t sampleRate, numChannels; in APacketSource() local
503 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
505 mFormat->setInt32(kKeySampleRate, sampleRate); in APacketSource()
[all …]
/frameworks/av/cmds/stagefright/
Daudioloop.cpp102 int32_t sampleRate = !name.empty() ? 44100 : outputWBAMR ? 16000 : 8000; in main() local
103 int32_t bitRate = sampleRate; in main()
116 sampleRate, in main()
120 source = new SineSource(sampleRate, channels); in main()
135 meta->setInt32("sample-rate", sampleRate); in main()
/frameworks/av/media/libaudiohal/impl/
DStreamPowerLog.h43 void init(uint32_t sampleRate, audio_channel_mask_t channelMask, audio_format_t format) { in init() argument
51 (long long)sampleRate * kPowerLogSamplingIntervalMs / 1000; in init()
53 sampleRate, in init()
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp61 uint32_t sampleRate; in testTrack() local
81 &sampleRate, &format, &channelMask, in testTrack()
99 offloadInfo.sample_rate = sampleRate; in testTrack()
115 sampleRate, in testTrack()
/frameworks/base/media/java/android/media/
DAudioFormat.java689 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
695 encoding, sampleRate, channelMask, channelIndexMask in AudioFormat()
700 int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
705 ? sampleRate : SAMPLE_RATE_UNSPECIFIED; in AudioFormat()
1044 public Builder setSampleRate(int sampleRate) throws IllegalArgumentException { in setSampleRate() argument
1048 if (((sampleRate < SAMPLE_RATE_HZ_MIN) || (sampleRate > SAMPLE_RATE_HZ_MAX)) && in setSampleRate()
1049 sampleRate != SAMPLE_RATE_UNSPECIFIED) { in setSampleRate()
1050 throw new IllegalArgumentException("Invalid sample rate " + sampleRate); in setSampleRate()
1052 mSampleRate = sampleRate; in setSampleRate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java69 public int sampleRate = 44100; field in ScreenInternalAudioRecorder.Config
79 + "\n sampleRate=" + sampleRate in toString()
89 mConfig.sampleRate, mConfig.channelInMask, in setupSimple()
96 .setSampleRate(mConfig.sampleRate) in setupSimple()
114 mConfig.sampleRate, AudioFormat.CHANNEL_IN_MONO, mConfig.encoding, size); in setupSimple()
119 MediaFormat.MIMETYPE_AUDIO_AAC, mConfig.sampleRate, 1); in setupSimple()
226 mPresentationTime = 1000000L * (mTotalBytes / 2) / mConfig.sampleRate; in encode()
/frameworks/base/media/jni/soundpool/
DSound.cpp203 uint32_t sampleRate; in doLoad() local
207 status = decode(mFd.get(), mOffset, mLength, &sampleRate, &channelCount, &format, in doLoad()
214 } else if (sampleRate > kMaxSampleRate) { in doLoad()
215 ALOGE("%s: sample rate (%u) out of range", __func__, sampleRate); in doLoad()
223 __func__, mHeap->getBase(), mSizeInBytes, sampleRate, channelCount); in doLoad()
225 mSampleRate = sampleRate; in doLoad()
/frameworks/av/media/libeffects/lvm/tests/
Dlvmtest.cpp521 LVM_Fs_en sampleRate; in lvmControl() local
524 sampleRate = LVM_FS_8000; in lvmControl()
527 sampleRate = LVM_FS_11025; in lvmControl()
530 sampleRate = LVM_FS_12000; in lvmControl()
533 sampleRate = LVM_FS_16000; in lvmControl()
536 sampleRate = LVM_FS_22050; in lvmControl()
539 sampleRate = LVM_FS_24000; in lvmControl()
542 sampleRate = LVM_FS_32000; in lvmControl()
545 sampleRate = LVM_FS_44100; in lvmControl()
548 sampleRate = LVM_FS_48000; in lvmControl()
[all …]
/frameworks/av/media/extractors/mp3/
DVBRISeeker.cpp53 int sampleRate; in CreateFromSource() local
54 if (!GetMPEGAudioFrameSize(tmp, &frameSize, &sampleRate)) { in CreateFromSource()
74 numFrames * 1000000LL * (sampleRate >= 32000 ? 1152 : 576) / sampleRate; in CreateFromSource()
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp50 uint32_t sampleRate; in negotiate() local
52 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat); in negotiate()
54 mFormat = Format_from_SR_C(sampleRate, in negotiate()

12345678