How do I play PCM data frame by frame?

Login to reply to this topic.
Thu, 2005-04-28 15:51
Joined: 2005-04-25
Forum posts: 3
How do I play PCM data frame by frame? I mean not play PCM file. For example, I have one second audio data, 8000 samples. Every time, 200 samples are stored in a buffer, then I play the audio data stored in a buffer. When the play is complete, i will write new data into the buffer and play it. How can I realize it? Thanks a lot!   Smiley

Fri, 2005-04-29 22:34
Joined: 2005-03-15
Forum posts: 3
Re: How do I play PCM data frame by frame?
Quote from: fs1028
How do I play PCM data frame by frame? I mean not play PCM file. For example, I have one second audio data, 8000 samples. Every time, 200 samples are stored in a buffer, then I play the audio data stored in a buffer. When the play is complete, i will write new data into the buffer and play it. How can I realize it? Thanks a lot!   Smiley

CMdaAudioOutputStream ?

/Alex

Sat, 2005-05-28 01:28
Joined: 2004-11-28
Forum posts: 2
Re: How do I play PCM data frame by frame?
Hi.

Yes, you can use the CMdaAudioOutputStream class in order to reproduce streaming samples.

Diego

dacosta51

  • Login to reply to this topic.