Lines Matching refs:buffer
25 convert(SampleType* buffer, const int32 samples, const float volume,
29 *buffer = (SampleType)(*buffer * volume + rounding);
30 buffer++;
37 convert(SampleType* buffer, const int32 frames, const int32 channels,
44 *buffer = (SampleType)(*buffer * volume + rounding);
45 buffer++;
82 AudioVolumeConverter::Read(void* buffer, int64 pos, int64 frames)
84 TRACE("AudioVolumeConverter::Read(%p, %lld, %lld)\n", buffer, pos, frames);
92 status_t ret = fSource->Read(buffer, pos, frames);
105 convert((float*)buffer, frames, channelCount,
108 convert((float*)buffer, samples, fVolume, 0.0);
112 convert((int32*)buffer, frames, channelCount,
115 convert((int32*)buffer, samples, fVolume, 0.5);
119 convert((int16*)buffer, frames, channelCount,
122 convert((int16*)buffer, samples, fVolume, 0.5);
127 uchar* b = (uchar*)buffer;
136 convert((int8*)buffer, frames, channelCount,
139 convert((int8*)buffer, samples, fVolume, 0.5);