2
.\" Copyright (c) 2005, 4Front Technologies 2005\&.
3
.TH ossddk_dmap_get_qhead 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
5
ossddk_dmap_get_qhead, ossddk_dmap_get_qtail \- Return the DMA buffer head/tail fragment numbers.
9
#include <sys/soundcard.h>
11
#include <sys/ossddk/ossddk.h>
14
\fBint\fR ossddk_dmap_get_qhead(\fBdmap_t *\fIdmap\fP);
15
\fBint\fR ossddk_dmap_get_qtail(\fBdmap_t *\fIdmap\fP);
19
Open Sound System specific (OSS 4.0 DDK)\&.
34
Some drivers need to know which fragment it should copy to/from the device.
35
The \fIossddk_dmap_get_qhead\fR function can be used to get the current
36
fragment number during playback. The \fIossddk_dmap_get_qtail\fR function
37
returns the current fragment the device is expected to fill in next during
38
recording. The fragment number will be in range 0 to num_fragments-1.
40
Pointer to the current fragment can be computed using formula
41
\fptr =d mabuf_address + Ifragment_number*fragment_size\fR.
44
These functions return the current fragment number.
48
\fIWriting Sound Device Drivers with OSS DDK\fR
50
\fIOpen Sound System Programmer's Guide\fR