From: Frederick Li <[EMAIL PROTECTED]>
Subject: data format of the raw audio send to my own audio device


Please help! Thanks in advance!

I am trying to write my own AudioDevice with the rmasdk 6.0. But I run
into some
problem. First I tried to change the sample code exauddev to dump the
audio data
into a file and then check out if the data dumped is correct or not.
What I had done is
in
     FakeAudioServices::AudioOut(void* pData, int nDataLen, int nMSecs)
add
     for(i=0; i<nDataLen;i++) {
        fputc( ((char *)pData)[i], outputfd);
     }
when pData is obtained by call ((RMAAudioData
*)pBuf->pMydata)->getBuffer().
After finished the dump, I tried to use a sound editor to play the file
as raw data. But
it seems that the data is not correct.

I just wonder why. What is the format of the data pointed by pData?

Any input will be appreciated.

Cheers, Frederick






*******************************************************
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