Java Bridge?
Java Bridge?
- Subject: Java Bridge?
- From: Daniel Staudigel <email@hidden>
- Date: Fri, 21 Jun 2002 18:57:14 -0700
When I try to access CoreAudio classes from Obj-C I get
2002-06-21 18:46:16.883 D-CAF[1803] ***
-[com/apple/audio/hardware/AudioHardware getAudioDevices]: selector not
recognized
2002-06-21 18:46:16.885 D-CAF[1803] Exception raised during posting of
notification. Ignored. exception: ***
-[com/apple/audio/hardware/AudioHardware getAudioDevices]: selector not
recognized
With this code:
//
// Created by Daniel Staudigel on Fri Jun 21 2002.
// Copyright (c) 2002 __MyCompanyName__. All rights reserved.
//
#import "DCHardware.h"
@interface AudioHardware : NSObject
{}
- (id)getAudioDevices;
@end
@implementation DCHardware
+ (void)discoverHardware
{
id hardware =
[[NSClassFromString(@"com.apple.audio.hardware.AudioHardware") alloc]
init];
//[hardware getAudioDevices];
NSLog([[hardware getAudioDevices] description]);
}
@end
Should I use just the C version of CoreAudio (Documentation/Simple
Example?), or make some sort of wrapper?
Daniel
_______________________________________________
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.