Home | History | Annotate | Download | only in libmedia

Lines Matching defs:alignment

1023         // Ensure that buffer alignment matches channel count
1025 size_t alignment = audio_bytes_per_sample(
1027 if (alignment & 1) {
1028 alignment = 1;
1031 // More than 2 channels does not require stronger alignment than stereo
1032 alignment <<= 1;
1034 if (((uintptr_t)mSharedBuffer->pointer() & (alignment - 1)) != 0) {
1035 ALOGE("Invalid buffer alignment: address %p, channel count %u",