Re: So is there some easy function... Re: How do I play muLaw sound.



Webster wrote:
So is there some easy function to play muLaw audio on the PC?

Do I have to first convert my muLaw data to this 16-bit format and then play it. What function do I call to play it.

I know virtually nothing about audio formats or about playing the audio. I was given an example on how to create .wav files from the muLaw data. I can do that fine. What I want to do now is play the audio on the PC which has the audio. I do NOT want to create .wav files first. Sometimes my audio is many seconds or minutes long and I want to begin hearing the audio as soon as possible. So I want to play the audio ASAP. I don't want to first create a .wav file and then play the file.

What steps do I need to do to play the muLaw audio? Are there functions that I can use?


I am using Visual C++ version 6. I can upgrade if I have to.



You can play mulaw audio without creating a WAV file. Use waveOutOpen and related waveOut... APIs. No conversion of the data format is needed.

But, playing continuous audio is not easy to program. You need to use multiple small buffers. Output two of them at the start (waveOutWrite). After the first one has been played it will be returned to you. While the second buffer is being played you have to refill the first and output it. This queued juggling act will give you continuous audio with no breaks between buffers.

--
Scott McPhillips [VC++ MVP]

.



Relevant Pages

  • Re: Audio problem software related
    ... I can play MP3s in WMP9. ... I can play audio CDs. ... Wav files run in WMP9, ... I have uninstalled all media programs except iTunes and Windows Media ...
    (microsoft.public.windowsxp.help_and_support)
  • Query to Bruce
    ... How do I play or record a .WAV file over the phone? ... TAPI relies on the Windows low-level multimedia API ... You have mentioned that Waveform Audio is ... I am able to play and record the .wav files using ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Error C00D11B1 When trying to play .WMA files use Windows Medi
    ... I can play both the .wma and the .wmv samples no problem at all. ... ACM Microsoft IMA ADPCM CODEC 0011 imaadp32.acm 5.1.2600.2180 ... ACM Windows Media Audio 0161 msaud32.acm 8.0.0.4487 ...
    (microsoft.public.windowsmedia.player)
  • Re: Is there a safe way to purge or initialize WMP Registry attrib
    ... I downloaded QuickTime 7.1 and all these files play fine that app. ... Assuming this is still a DirectShow problem, ... On the "shuts down WMP" problem - does that actually crash the player ... Plays video but no audio = avi, m1v, mpe, mpeg, mpg ...
    (microsoft.public.windowsmedia.player)
  • Re: About digitized speech
    ... I know about the WAV player, ... Using the AY chip to play a speccy sampled sound is not going to improve its ... The speccy has an audio in port, ...
    (comp.sys.sinclair)

Loading