a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Devices:
 audio.device
  ADCMD_ALLOCATE
  ADCMD_FINISH
  ADCMD_FREE
  ADCMD_LOCK
  ADCMD_PERVOL
  ADCMD_SETPREC
  ADCMD_WAITCYCLE
  AbortIO
  BeginIO
  CMD_CLEAR
  CMD_FLUSH
  CMD_READ
  CMD_RESET
  CMD_START
  CMD_STOP
  CMD_UPDATE
  CMD_WRITE
  CloseDevice
  Expunge
  OpenDevice
Include
GuruMeditation
Docs » Autodocs » audio.device » CloseDevice

NAME

       CloseDevice - terminate access to the audio device

SYNOPSIS

       CloseDevice(iORequest);
A1

FUNCTION

       The CloseDevice routine notifies the audio device that it will no
longer be used. It takes an I/O audio request block (IOAudio) and
clears the device pointer (io_Device). If there are any channels
allocated with the same allocation key (ioa_AllocKey), CloseDevice
frees (ADCMD_FREE) them. CloseDevice decrements the open count, and if
it falls to zero and an expunge (Expunge) is pending, the device is
expunged.

INPUTS

       iORequest   - pointer to audio request block (struct IOAudio)
io_Device - pointer to device node, must be set by (or
copied from I/O block set by) open (OpenDevice)
io_Unit - bit map of channels to free (ADCMD_FREE) (bits 0
thru 3 correspond to channels 0 thru 3)
ioa_AllocKey- allocation key, used to free channels

RESULT

       iORequest - pointer to audio request block (struct IOAudio)
io_Device - set to -1
io_Unit - set to zero

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Dual Crew

RZR
TSL
DC
ANA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se