From: "Craig A. Schultz" <[EMAIL PROTECTED]>
Subject: Re: Raw PCM Sample = UCHAR?

Hi,
     If you can caste it from one to the other, you can store it that way.
That is generally true.  In some cases unsigned to signed can be a problem but
not with data generally.  Is  a "short integer" buffer = to  "char" on your
system,( being only a Windoze guy) myself,?  If so, you can basically freely
caste between the two.  One good test, if it compiles, it might work, if it
don't compile, forget it.  ;-)
Craig

RealForum wrote:

 > From: Mahmoud Sherif El Banhawy <[EMAIL PROTECTED]>
 > Subject: Raw PCM Sample = UCHAR?
 >
 > Hello,
 >
 > I was just looking through the Sample program avcnvt that comes with the
 > Real SDK....and I was wondering if the buffer storing the raw audio data
 > read from the AVI file has to be a UCHAR buffer in order for the
 > IRMAMediaSample object to correctly interpret the data.......I was
 > intending to store the audio sample in a short integer buffer since that
 > would be more practical for 16 bit audio.  Can anyone helpme with this
 > dilemma.
 >
 > Thanks,
 >
 > Mahmoud Sherif


*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.  Archives of RealForum can
be found at http://realforum.real.com

If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:

    unsubscribe realforum

or from another account, besides the address you subscribed with:

    unsubscribe realforum <[EMAIL PROTECTED]>

Reply via email to