home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.2 (Developer)
/
NS_dev_3.2.iso
/
NextDeveloper
/
Headers
/
driverkit
/
IOAudio.h
< prev
next >
Wrap
Text File
|
1993-08-06
|
3KB
|
114 lines
/*
* IOAudio.h
*
* Copyright (c) 1993, NeXT Computer, Inc. All rights reserved.
*
*/
#import <driverkit/i386/directDevice.h>
#import <mach/mach_types.h>
#import <mach/mach_interface.h>
#import <soundkit/NXSoundParameterTags.h>
typedef void (*IOAudioInterruptClearFunc)(void);
@interface IOAudio: IODirectDevice
{
@private
id _inputChannel;
id _outputChannel;
id _audioCommand;
port_t _commandPort;
port_set_name_t _devicePortSet;
msg_header_t *_dataPendingMessage;
msg_timeout_t _timeout;
unsigned int _sampleRate;
unsigned int _dataEncoding;
unsigned int _channelCount;
unsigned int _inputGainLeft;
unsigned int _inputGainRight;
int _outputAttenuationLeft;
int _outputAttenuationRight;
int _bassBoost;
int _trebleBoost;
BOOL _isInputActive;
BOOL _isOutputActive;
BOOL _isInputMuted;
BOOL _isOutputMuted;
BOOL _isLoudnessEnhanced;
BOOL _doesInsertZeros;
BOOL _doesDeemphasize;
BOOL _doesRampUp;
BOOL _doesRampDown;
int _IOAudio_reserved[4];
}
- initFromDeviceDescription: (IOEISADeviceDescription *) description;
- (BOOL) reset;
- free;
- (unsigned int) sampleRate;
- (NXSoundParameterTag) dataEncoding;
- (unsigned int) channelCount;
- (void) interruptOccurredForInput: (BOOL *) serviceInput
forOutput: (BOOL *) serviceOutput;
- (void) timeoutOccurred;
- (BOOL) startDMAForChannel: (unsigned int) localChannel
read: (BOOL) isRead
buffer: (IOEISADMABuffer) buffer
bufferSizeForInterrupts: (unsigned int) bufferSize;
- (void) stopDMAForChannel: (unsigned int) localChannel
read: (BOOL) isRead;
- (unsigned int) inputGainLeft;
- (unsigned int) inputGainRight;
- (int) outputAttenuationLeft;
- (int) outputAttenuationRight;
- (BOOL) isOutputMuted;
- (BOOL) isLoudnessEnhanced;
- (BOOL) isInputActive;
- (BOOL) isOutputActive;
- (BOOL) acceptsContinuousSamplingRates;
- (void) getSamplingRatesLow: (int *) lowRate
high: (int *) highRate;
- (void) getSamplingRates: (int *) rates
count: (unsigned int *) numRates;
- (void) getDataEncodings: (NXSoundParameterTag *) encodings
count: (unsigned int *) numEncodings;
- (unsigned int) channelCountLimit;
- (void) updateLoudnessEnhanced;
- (void) updateInputGainLeft;
- (void) updateInputGainRight;
- (void) updateOutputMute;
- (void) updateOutputAttenuationLeft;
- (void) updateOutputAttenuationRight;
- (IOAudioInterruptClearFunc) interruptClearFunc;
@end