Home
last modified time | relevance | path

Searched refs:AudioMixer (Results 1 – 12 of 12) sorted by relevance

/frameworks/av/media/libaudioprocessing/tests/
Dtest-mixer.cpp146 if ((unsigned)argc > AudioMixer::MAX_NUM_TRACKS) { in main()
147 fprintf(stderr, "too many tracks: %d > %u", argc, AudioMixer::MAX_NUM_TRACKS); in main()
239 AudioMixer *mixer = new AudioMixer(mixerFrameCount, outputSampleRate); in main()
242 float f = AudioMixer::UNITY_GAIN_FLOAT / providers.size(); // normalize volume by # tracks in main()
254 mixer->setParameter(name, AudioMixer::TRACK, AudioMixer::MAIN_BUFFER, in main()
258 AudioMixer::TRACK, in main()
259 AudioMixer::MIXER_FORMAT, in main()
263 AudioMixer::TRACK, in main()
264 AudioMixer::FORMAT, in main()
268 AudioMixer::TRACK, in main()
[all …]
/frameworks/av/services/audioflinger/
DFastMixer.cpp165 LOG_ALWAYS_FATAL_IF(mSinkChannelCount > AudioMixer::MAX_NUM_CHANNELS); in onStateChange()
190 mMixer = new AudioMixer(frameCount, mSampleRate, FastMixerState::sMaxFastTracks); in onStateChange()
269 mMixer->setParameter(name, AudioMixer::TRACK, AudioMixer::MAIN_BUFFER, in onStateChange()
274 AudioMixer::TRACK, in onStateChange()
275 AudioMixer::MIXER_FORMAT, (void *)mMixerBufferFormat); in onStateChange()
276 mMixer->setParameter(name, AudioMixer::TRACK, AudioMixer::FORMAT, in onStateChange()
278 mMixer->setParameter(name, AudioMixer::TRACK, AudioMixer::CHANNEL_MASK, in onStateChange()
280 mMixer->setParameter(name, AudioMixer::TRACK, AudioMixer::MIXER_CHANNEL_MASK, in onStateChange()
303 float f = AudioMixer::UNITY_GAIN_FLOAT; in onStateChange()
304 mMixer->setParameter(name, AudioMixer::VOLUME, AudioMixer::VOLUME0, &f); in onStateChange()
[all …]
DFastMixer.h28 class AudioMixer; variable
66 AudioMixer* mMixer;
DThreads.cpp3601 mAudioMixer = new AudioMixer(mNormalFrameCount, mSampleRate); in MixerThread()
4248 if (AudioMixer::TRACK0 <= name && in prepareTracks_l()
4249 name < (int) (AudioMixer::TRACK0 + AudioMixer::MAX_NUM_TRACKS)) { in prepareTracks_l()
4250 name -= AudioMixer::TRACK0; in prepareTracks_l()
4287 int param = AudioMixer::VOLUME; in prepareTracks_l()
4293 param = AudioMixer::RAMP_VOLUME; in prepareTracks_l()
4295 mAudioMixer->setParameter(name, AudioMixer::RESAMPLE, AudioMixer::RESET, NULL); in prepareTracks_l()
4300 param = AudioMixer::RAMP_VOLUME; in prepareTracks_l()
4354 param = AudioMixer::VOLUME; in prepareTracks_l()
4363 param = AudioMixer::VOLUME; in prepareTracks_l()
[all …]
DAudioFlinger.h80 class AudioMixer; variable
383 || channelCount > AudioMixer::MAX_NUM_CHANNELS) { in isValidPcmSinkChannelMask()
394 && channelCount <= AudioMixer::MAX_NUM_CHANNELS) { in isValidPcmSinkChannelMask()
DTracks.cpp515 } else if (mName >= AudioMixer::TRACK0) { in dump()
516 sprintf(buffer, " %4d", mName - AudioMixer::TRACK0); in dump()
DThreads.h1047 AudioMixer* mAudioMixer; // normal mixer
/frameworks/av/media/libaudioprocessing/
DAudioMixer.cpp100 AudioMixer::AudioMixer(size_t frameCount, uint32_t sampleRate, uint32_t maxNumTracks) in AudioMixer() function in android::AudioMixer
135 AudioMixer::~AudioMixer() in ~AudioMixer()
149 void AudioMixer::setLog(NBLog::Writer *log) in setLog()
158 int AudioMixer::getTrackName(audio_channel_mask_t channelMask, in getTrackName()
246 void AudioMixer::invalidateState(uint32_t mask) in invalidateState()
257 bool AudioMixer::setChannelMasks(int name, in setChannelMasks()
302 void AudioMixer::track_t::unprepareForDownmix() { in unprepareForDownmix()
323 status_t AudioMixer::track_t::prepareForDownmix() in prepareForDownmix()
364 void AudioMixer::track_t::unprepareForReformat() { in unprepareForReformat()
382 status_t AudioMixer::track_t::prepareForReformat() in prepareForReformat()
[all …]
DAndroid.mk6 AudioMixer.cpp.arm \
DRecordBufferConverter.cpp172 mResampler->setVolume(AudioMixer::UNITY_GAIN_FLOAT, AudioMixer::UNITY_GAIN_FLOAT); in updateParameters()
/frameworks/av/include/media/
DAudioMixer.h34 #define MAX_GAIN_INT AudioMixer::UNITY_GAIN_INT
40 class AudioMixer
43 AudioMixer(size_t frameCount, uint32_t sampleRate,
46 /*virtual*/ ~AudioMixer(); // non-virtual saves a v-table, restore if sub-classed
351 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t);
/frameworks/av/media/libaudioclient/include/media/
DAudioMixer.h34 #define MAX_GAIN_INT AudioMixer::UNITY_GAIN_INT
40 class AudioMixer
43 AudioMixer(size_t frameCount, uint32_t sampleRate,
46 /*virtual*/ ~AudioMixer(); // non-virtual saves a v-table, restore if sub-classed
351 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t);