From: Frederick Li <[EMAIL PROTECTED]>
Subject: Re: data format of the raw audio send to my own audio device
I had checked the RMAAudioFormat passed to
IRMAAudioDevice::Open and it is 2 channels, 16 Bits/Sample and 16000
samples/sec
for testing data thanks3.ra. But when I use my sound edit to play the dumped
file
and signal looks like a saturated white noice. I just wonder if I should call
some
method of the player to adjust the volume. If I do, how should I do it?
Cheers, Frederick
RealForum wrote:
> From: Nicholas Hart <[EMAIL PROTECTED]>
> Subject: Re: data format of the raw audio send to my own audio device
>
> It's PCM. Check the values in the RMAAudioFormat that is passed in to
> IRMAAudioDevice::Open to find out the number of channels, bits per sample
> and sample rate.
>
> At 10:02 AM 4/3/00 -0700, you wrote:
> >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]>