Play .wav file from application

Discussion in 'Mac Programming' started by LPZ, Dec 27, 2010.

  1. LPZ macrumors 65816

    Jul 11, 2006
    The backgammon program gnubg currently uses the QuickTime framework to play .wav files. Since this framework is 32-bit only, I can't compile a 64-bit binary (and still have sounds). I'd like to revise the code in sound.c to use a 64-bit framework that would provide a similar functionality.

    Any suggestions/guidance would be much appreciated. I've searched for sample code to follow, but haven't found any. Thanks.
  2. chown33 macrumors 604

    Aug 9, 2009
  3. LPZ thread starter macrumors 65816

    Jul 11, 2006
    I haven't tried anything yet. I'm seeking general suggestions from Mac programmers about what might be a proper approach to investigate. The program is written in C, so I need something with a C API.

    I can build gnubg fine as a 32 bit application, but that means I need to build 32-bit (or universal) versions of all the libraries it uses (quite a few). Not really a problem, but it seems like the right long-term solution is to figure out how to transition gnubg away from the now old QuickTime framework.

    Thanks for the link, by the way.

Share This Page