Hi,
I'm creating an iTunes replacement. The most essential part of the app is obviously playing music.
I looked at the CoreAudio (which seems to be more about creating music than just playing it) and QuickTime frameworks. Otherwise, accessing base APIs for each format (e.g. libmp3lame for mp3 support) would probably work, but be very work-intensive. I'm aiming for all formats supported by iTunes, extra formats would be a plus, but aren't required as of now.
What's the best way of playing music in a Mac OS X application?
EDIT: Found NSSound, which is extremely simple to use. Just playing the music with NSSound, no app loaded, needs 2% CPU. Fully-loaded QuickTime uses 2.9%, iTunes needs 2.5%. Wondering if they use NSSound...
I'm creating an iTunes replacement. The most essential part of the app is obviously playing music.
I looked at the CoreAudio (which seems to be more about creating music than just playing it) and QuickTime frameworks. Otherwise, accessing base APIs for each format (e.g. libmp3lame for mp3 support) would probably work, but be very work-intensive. I'm aiming for all formats supported by iTunes, extra formats would be a plus, but aren't required as of now.
What's the best way of playing music in a Mac OS X application?
EDIT: Found NSSound, which is extremely simple to use. Just playing the music with NSSound, no app loaded, needs 2% CPU. Fully-loaded QuickTime uses 2.9%, iTunes needs 2.5%. Wondering if they use NSSound...