Re: Mixing Objective C and C++
Re: Mixing Objective C and C++
- Subject: Re: Mixing Objective C and C++
- From: Todd Heberlein <email@hidden>
- Date: Tue, 15 Oct 2002 13:53:43 -0700
On Monday, October 14, 2002, at 06:19 PM, Craig Bakalian wrote:
Anyone out there ever call CoreAudio or CoreMIDI
from a Cocoa app?
I have not looked at CoreMIDI, and I have not looked at CoreAudio since
I switched to Jaguar. However, I did play around a little with
CoreAudio within Cocoa for MacOS 10.1. I just wrote little programs to
record my voice from a USB microphone, play it back, plot the wave
forms, and save the audio to a file. I also wrote a very simple
program to play tracks from a CD player.
The few CoreAudio functions I called were all regular C functions. The
only tricky thing I found with CoreAudio is that the system seemed to
fire off its own threads to call my C call-back functions that read
from or wrote to audio streams. To interact between these threads that
are automatically created and my main user interface loop I used a
couple of global variables. Definitely cheating, but I was just
playing around.
Todd
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.