Home
last modified time | relevance | path

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

/frameworks/av/services/audioflinger/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 …]
DAndroid.mk37 ../AudioMixer.cpp.arm \
/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 …]
DAudioMixer.cpp101 AudioMixer::AudioMixer(size_t frameCount, uint32_t sampleRate, uint32_t maxNumTracks) in AudioMixer() function in android::AudioMixer
136 AudioMixer::~AudioMixer() in ~AudioMixer()
150 void AudioMixer::setLog(NBLog::Writer *log) in setLog()
159 int AudioMixer::getTrackName(audio_channel_mask_t channelMask, in getTrackName()
247 void AudioMixer::invalidateState(uint32_t mask) in invalidateState()
258 bool AudioMixer::setChannelMasks(int name, in setChannelMasks()
303 void AudioMixer::track_t::unprepareForDownmix() { in unprepareForDownmix()
318 status_t AudioMixer::track_t::prepareForDownmix() in prepareForDownmix()
359 void AudioMixer::track_t::unprepareForReformat() { in unprepareForReformat()
377 status_t AudioMixer::track_t::prepareForReformat() in prepareForReformat()
[all …]
DAudioMixer.h36 #define MAX_GAIN_INT AudioMixer::UNITY_GAIN_INT
42 class AudioMixer
45 AudioMixer(size_t frameCount, uint32_t sampleRate,
48 /*virtual*/ ~AudioMixer(); // non-virtual saves a v-table, restore if sub-classed
353 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t);
DFastMixer.h28 class AudioMixer; variable
66 AudioMixer* mMixer;
DThreads.cpp3446 mAudioMixer = new AudioMixer(mNormalFrameCount, mSampleRate); in MixerThread()
4062 if (AudioMixer::TRACK0 <= name && in prepareTracks_l()
4063 name < (int) (AudioMixer::TRACK0 + AudioMixer::MAX_NUM_TRACKS)) { in prepareTracks_l()
4064 name -= AudioMixer::TRACK0; in prepareTracks_l()
4101 int param = AudioMixer::VOLUME; in prepareTracks_l()
4107 param = AudioMixer::RAMP_VOLUME; in prepareTracks_l()
4109 mAudioMixer->setParameter(name, AudioMixer::RESAMPLE, AudioMixer::RESET, NULL); in prepareTracks_l()
4114 param = AudioMixer::RAMP_VOLUME; in prepareTracks_l()
4166 param = AudioMixer::VOLUME; in prepareTracks_l()
4175 param = AudioMixer::VOLUME; in prepareTracks_l()
[all …]
DAndroid.mk29 AudioMixer.cpp.arm \
DAudioFlinger.h71 class AudioMixer; variable
356 || channelCount > AudioMixer::MAX_NUM_CHANNELS) { in isValidPcmSinkChannelMask()
367 && channelCount <= AudioMixer::MAX_NUM_CHANNELS) { in isValidPcmSinkChannelMask()
DTracks.cpp473 } else if (mName >= AudioMixer::TRACK0) { in dump()
474 sprintf(buffer, " %4d", mName - AudioMixer::TRACK0); in dump()
DThreads.h900 AudioMixer* mAudioMixer; // normal mixer