SDL + QTKit: Possible to use together?

Discussion in 'Mac Programming' started by wrldwzrd89, Dec 23, 2010.

  1. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    I've got what should hopefully be a simple programming question: Is it possible to use the SDL (Simple DirectMedia Layer) library together with QTKit, to play back audio only? Obviously, video playback with QTKit and SDL isn't going to work - which is fortunate as that's not why I'd be using QTKit.

    If that option isn't possible, then is there a C or C++ or Objective-C library I can use to play compressed audio in the HE-AAC format, that will compile on the Mac? I don't mind having to compile things from source code, but I'd rather not make end users of my software have to do the same just to use it.
  2. kainjow Moderator emeritus


    Jun 15, 2000
    I don't see why not. SDL runs as a normal Cocoa app, so you have access to everything. Just make sure you access QTKit from .m files since it's Obj-C only. There is also NSSound which is a bit simpler API.

Share This Page