• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mixing Objective C and C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Mixing Objective C and C++ (From: Craig Bakalian <email@hidden>)

  • Prev by Date: Newbie Questions (components, databases, and parsing)
  • Next by Date: AddressBook - how to search for absence of value?
  • Previous by thread: Re: Mixing Objective C and C++
  • Next by thread: Re: Mixing Objective C and C++
  • Index(es):
    • Date
    • Thread