View Full Version : a problem about PCM sampling rate in spec 1.0.1
08-21-2011, 09:18 PM
In Page 489 of spec 1.0.1,
I noticed that "pcm.samplesPerSec = SL_SAMPLINGRATE_44_1" and pcm.samplesPerSec was defined samples per second.
however, in Page 466, the spec said "These macros specify the commonly used sampling rates (in milliHertz) supported by most audio I/O devices."
This is one of those embarrassing things that happen even though you’ve spent hundreds of hours reading through the spec over and over looking for errors. :oops:
samplesPerSec should have been named samplesPerMilliSec. If you look at the definition of SLDataFormat_PCM in the OpenSL ES 1.1 specification, we made a clarification as to this error. Additionally we also deprecated the struct in favor of one that has the member correctly named.
In the meanwhile, I am working with the working group members to ensure that I give you a technically correct answer for proper usage in 1.0.1 according to the conformance tests and existing implementations.
To further clarify this issue, I checked the conformance tests for 1.0.1 and talked to the implementers of the publicly available implementations. In all cases, the correct usage is to pass the value in milliHertz.
09-08-2011, 08:38 AM
First time to ask a question here, and your reply is very helpful,
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.