Re: trace PCM data from usb bus to alsa lib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Takashi Iwai <tiwai <at> suse.de> writes:
> > At Wed, 17 Jun 2009 16:10:26 +0800,> Zero Luo wrote:> > > > Dear Takashi,> >  > >    Data from usb dongle is 16K*16 bit PCM data.> > And what is the format and channels you are using in alsa-lib?> alsa-lib itself can convert formats and channels automatically if needed.> > Takashi

 In alsa-lib ,I set data format as 8K * mulaw .        hwparams.format = SND_PCM_FORMAT_MU_LAW;        hwparams.rate = 8000;        hwparams.channels = 1; Yes,indeed alsa-lib help to convert formats.But before alsa-lib convert pcm data to mulaw,I dumped the src data in snd_pcm_mulaw_encode() which already has no "0000" .

Zero
_______________________________________________Alsa-devel mailing listAlsa-devel@xxxxxxxxxxxxxxxxxxxx://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux