Play sound file on Qt + Mac

I need to play sounds under Qt with volume and pan controls. QSound does not do this, the phonon may be too strong just for that, so I thought I would try the native api.

eeermm, on a Mac I have no idea if there is some simple interface to call in C ++? (I've seen all of this NSSound stuff, but I'm not familiar with Objective-C, and I'm not sure if it is possible to mix code (under QtCreator)). My idea would be with a module with simple native api calls for system functions that were not found on Qt.

Thank!

+3
source share
1 answer

Qt AudioEngine in Qt5 will do this.

Qt4, Objective-C ++ '( .mm), Qt, NSFoo, . ++, .

+1

All Articles