Results 1 to 4 of 4

Thread: a problem about PCM sampling rate in spec 1.0.1

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    3

    a problem about PCM sampling rate in spec 1.0.1

    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."

  2. #2
    Super Moderator
    Join Date
    Mar 2009
    Location
    Sweden
    Posts
    48

    Re: a problem about PCM sampling rate in spec 1.0.1

    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.

    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.

    Best,

    Erik
    Erik Noreke,
    Work Group Chair OpenSL ES, OpenMAX AL

  3. #3
    Super Moderator
    Join Date
    Mar 2009
    Location
    Sweden
    Posts
    48

    Re: a problem about PCM sampling rate in spec 1.0.1

    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.

    Best,

    Erik
    Erik Noreke,
    Work Group Chair OpenSL ES, OpenMAX AL

  4. #4
    Junior Member
    Join Date
    Jul 2011
    Posts
    3

    Re: a problem about PCM sampling rate in spec 1.0.1

    Thanks!

    First time to ask a question here, and your reply is very helpful,

    best wishes!

Similar Threads

  1. raise frame rate problem
    By toby in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 01-20-2013, 01:51 PM
  2. Frame Rate in ES???
    By qasim1981 in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 11-17-2004, 01:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •