How to play a .wav file using C? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to play a .wav file using C?

VijayVijay Posts: 1Member
Sir, kindly guide me how to play a .wav file usig C. I have some knowledge of DMA programming, the AC'97 compatible soundcard & .wav file structure but I am unable to know how to make the DMA acknowledge me of finishing the data.

Comments

  • Sephiroth2Sephiroth2 Posts: 423Member
    : Sir, kindly guide me how to play a .wav file usig C. I have some knowledge of DMA programming, the AC'97 compatible soundcard & .wav file structure but I am unable to know how to make the DMA acknowledge me of finishing the data.
    :
    The soundcard generates an IRQ when data transfer is finished.

  • lankyjaslankyjas Posts: 4Member
    When the DMA chip has finished transferring the block, it will generate an IRQ. You can determine which number IRQ will be generated by looking at your Sound Card's settings. (On mine it's IRQ 9)

  • Sephiroth2Sephiroth2 Posts: 423Member
    : When the DMA chip has finished transferring the block, it will generate an IRQ. You can determine which number IRQ will be generated by looking at your Sound Card's settings. (On mine it's IRQ 9)
    :
    man this post is, like, four months old lol

  • noman4evernoman4ever Posts: 3Member
    Hey, check this code which i wrote, using this code you can easily create a wav file, i have explained everything header, sub-header and data part of wav file, i have even inlcuded the part to record something and then you can run the wav-file to check that it really works!! here is the link and happy programming

    http://www.nerdmodo.com/2009/07/creating-recording-sound-in-wav-file-using-mimos-with-cc/
  • CKZRCKZR Posts: 4Member
    You should surf on the official website of the company, there should be a user guide in their website, if not, you should send an email to contact them, it may works. You can also change a new one.

    Good luck.
  • sanhuisanhui Posts: 2Member
    sorry ,I don't know.
  • Allison7Allison7 Posts: 2Member
    rhythmbox is a media organizer and player, a bit like iTunes, that runs on X Windows. That means your computer will have to be running that application for your program to control it. I sounds like librhythmbox-core is a good library to try linking against. It looks like that link just shows a list of all the files that are installed when you install the rhythmbox package, including the library you found.
  • EmirusselEmirussel Posts: 1Member
    I can't open your website it redirects me to a google privacy domain or something like that,could you please send me your record and play back code you mentioned just right here to my email?
    [email protected]
    I am really in a demand for such a code if it really works as you said.
    Thanks in advance
    Best
    Emma
  • austincarvenaustincarven Posts: 1Member
    Hello,

    I do not know about wav file but I found a sample that works with MP3, you might find it useful: http://www.voip-sip-sdk.com/p_345-voip-mp3-playing-voip.html

    Hope it helps.
Sign In or Register to comment.