0f92f48017588949daf7d24a339423e149bb2555 |
|
01-Sep-2011 |
Glenn Kasten <gkasten@google.com> |
Bug 5244675 PCM sample rate metadata units The current metadata key macro name ANDROID_KEY_INDEX_PCMFORMAT_SAMPLESPERSEC is confusing. This change renames it to ANDROID_KEY_INDEX_PCMFORMAT_SAMPLERATE, and documents that it is in Hz rather than milliHz. The key string is renamed from AndroidPcmFormatSamplesPerSec to AndroidPcmFormatSampleRate. Details: OpenSL ES 1.0.1 PCM struct SLDataFormat_PCM field samplesPerSec [sic] is in milliHz. OpenSL ES 1.1 preserves that struct, but adds struct SLDataFormat_PCM with field sampleRate also in milliHz. If the ANDROID_KEY_INDEX_PCMFORMAT_* metadata keys were intended to exactly model the OpenSL ES PCM data format struct, the metadata sample rate would also be in milliHz units. However, the rest of Android operates in Hz so we use Hz here also. Backwards compatibility for the name should not be an issue, as the initial beta developer has not yet started using this metadata. Related change: delete a duplicate header file. Change-Id: Ib8f620dfe7a328f621ddbb19f55e5691eb22d7b5
/frameworks/wilhelm/include/SLES/OpenSLES_AndroidMetadata.h
|