×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    How PCM16 data is arranged in 8 bit CMMFBuffer ?

    hi,
    PCM16 is a 16 bit data. We get this data stored in a 8 bit CMMFBuffer. My question is how it is arranged. I guess it is arranged in 2 bytes and follow little-endian. Am I right or wrong ? Please help me.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: How PCM16 data is arranged in 8 bit CMMFBuffer ?

    Since no one answered in the past 1+ days, it might be easier to check. Besides endianness, you may also want to check if the data is signed or unsigned.
    While I do not know the answer for your question, in case of a simple CMdaAudioOutputStream 16 bit PCM is stored as signed little-endian.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: How PCM16 data is arranged in 8 bit CMMFBuffer ?

    Quote Originally Posted by wizard_hu_ View Post
    Since no one answered in the past 1+ days, it might be easier to check. Besides endianness, you may also want to check if the data is signed or unsigned.
    While I do not know the answer for your question, in case of a simple CMdaAudioOutputStream 16 bit PCM is stored as signed little-endian.
    Yes, you are right wizard_hu_. PCM16 is stored as signed little-endian.
    I am facing one problem while recording in PCM16. I always get 4096 byte at a time. Can I fix it in my own way so that i get at my desired size in BufferToBeEmptied() ?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: How PCM16 data is arranged in 8 bit CMMFBuffer ?

    The 4096 is some standard thing: http://www.developer.nokia.com/Commu...dioInputStream
    For MMF magic, there is some TMMFCapabilities::iBufferSize which you can try setting.

Similar Threads

  1. A query on audio Record/Playback in PCM16 using CMMFBuffer and speex
    By Md. Kayesh in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2012-07-19, 11:32
  2. How to Read a .Wav file and save it in a CMMFBuffer
    By shaktiqt123 in forum Symbian C++
    Replies: 2
    Last Post: 2011-02-15, 10:53
  3. Convert CMMFBuffer data into descriptor
    By anandkris in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2010-09-01, 08:04
  4. HBuffC8 to CMMFbuffer Urgent !!!!!!!!!!
    By shwethavg in forum Symbian C++
    Replies: 2
    Last Post: 2009-02-09, 13:03
  5. How the Series 60 SDK is arranged?
    By mainul_2001 in forum Symbian C++
    Replies: 2
    Last Post: 2002-10-02, 10:07

Posting Permissions

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