ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference

 


IOAudioLib.h

Include Path:

<IOKit/audio/IOAudioLib.h>

Path:

/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/audio/IOAudioLib.h

Includes:

Overview

This header includes the C interface to IOAudio functions, used for controlling audio devices. Developers are encouraged to use the Core Audio HAL rather than attempting to control an audio device directly.

For more information on the Core Audio HAL, download the Core Audio SDK from http://developer.apple.com/audio/.



Functions

IOAudioFlush

Indicate the position at which the audio stream can be stopped.

IOAudioIsOutput

Determines if the audio stream is an output stream

IOAudioSetErase

Set autoerase flag, returns old value


IOAudioFlush


Indicate the position at which the audio stream can be stopped.

kern_return_t IOAudioFlush(
    io_connect_t connect,
    IOAudioStreamPosition *end);  
Parameters
connect

the audio stream

end

the position

Return Value

kern_return_t


IOAudioIsOutput


Determines if the audio stream is an output stream

kern_return_t IOAudioIsOutput(
    io_service_t service,
    int *out);  
Parameters
service
out
Return Value

kern_return_t


IOAudioSetErase


Set autoerase flag, returns old value

kern_return_t IOAudioSetErase(
    io_connect_t connect,
    int erase,
    int *oldVal);  
Parameters
connect

the audio stream

erase

true to turn off, false otherwise

oldVal

previous value

Return Value

kern_return_t


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2009-02-23