2
.\" Copyright (c) 2005, 4Front Technologies 2005\&.
3
.TH ossddk_dmap_get_buffused 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
5
ossddk_dmap_get_buffused \- Returns the size of buffer that is actually in use
9
#include <sys/soundcard.h>
11
#include <sys/ossddk/ossddk.h>
14
\fBint\fR ossddk_dmap_get_buffused(\fBdmap_t *\fIdmap\fP);
18
Open Sound System specific (OSS 4.0 DDK)\&.
33
OSS audio devices have a DMA buffer with the maximum size returned by
34
\fIossddk_dmap_get_buffsize\fR. However in most cases just part of the available
35
buffer is actually in use. The driver can call \fIossddk_dmap_get_buffused\fR
36
to find out the transfer count to be programmed in the device registers.
39
Amount of buffer currently in use (in bytes). This value equals to
40
fragment_size*num_fragments.
44
\fIWriting Sound Device Drivers with OSS DDK\fR
46
\fIOpen Sound System Programmer's Guide\fR