Lines Matching refs:pMem
38 AudioEqualizer * AudioEqualizer::CreateInstance(void * pMem, int nBands,
42 ALOGV("AudioEqualizer::CreateInstance(pMem=%p, nBands=%d, nChannels=%d, "
44 pMem, nBands, nChannels, sampleRate, nPresets);
47 if (pMem == NULL) {
48 pMem = malloc(GetInstanceSize(nBands));
49 if (pMem == NULL) {
54 return new (pMem) AudioEqualizer(pMem, nBands, nChannels, sampleRate,
287 AudioEqualizer::AudioEqualizer(void * pMem, int nBands, int nChannels,
293 assert(pMem != NULL);
295 mpMem = ownMem ? pMem : NULL;
297 pMem = (char *) pMem + sizeof(AudioEqualizer);
298 mpLowShelf = new (pMem) AudioShelvingFilter(AudioShelvingFilter::kLowShelf,
300 pMem = (char *) pMem + sizeof(AudioShelvingFilter);
301 mpHighShelf = new (pMem) AudioShelvingFilter(AudioShelvingFilter::kHighShelf,
303 pMem = (char *) pMem + sizeof(AudioShelvingFilter);
306 mpPeakingFilters = reinterpret_cast<AudioPeakingFilter *>(pMem);