• 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: coreaudio sample code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreaudio sample code?


  • Subject: Re: coreaudio sample code?
  • From: Daniel Staudigel <email@hidden>
  • Date: Mon, 17 Jun 2002 22:48:41 -0700

hehe, from n00b to n00b, this isn't that hard, as long as you know your Java (note to self BTW :P). Here is my code for discovering Audio hardware:

//
// DiscoverAudioDevices.java
//
import java.util.*;
import com.apple.audio.*;

public class DiscoverAudioDevices {

public static void main (String args[]) {
//com.apple.audio.hardware.AudioHardware hardwareDiscoverer;

//hardwareDiscoverer();

//hardwareDiscoverer = com.apple.audio.hardware.AudioHardware.Object();

com.apple.audio.hardware.AudioDevice[] devices ;

try {
devices = com.apple.audio.hardware.AudioHardware.getAudioDevices();

for(int i=0;i < devices.length;i++)
{
System.out.println(devices[0].getName() + '\n');
}
} catch (com.apple.audio.CAException variable)
{
System.out.println("Screwed up... Exiting.\n");
}


}
}

My output is just

Built-in audio controller

Hope that helps, to start.

Daniel

On Monday, June 17, 2002, at 10:34 PM, eas wrote:

Hi,

I searched on apple's developer site for sample code for the coreaudio engine. Does anyone know where I can find some sample code for it? Apple has a lot of good example code for the old style audio, but I couldn't find anything for the new engine.

Thanks,

Edward
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >coreaudio sample code? (From: eas <email@hidden>)

  • Prev by Date: Re: CoreAudio Introduction?
  • Next by Date: Names of Streams?
  • Previous by thread: coreaudio sample code?
  • Next by thread: Re: CoreAudio Introduction?
  • Index(es):
    • Date
    • Thread