| 1 |
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\ |
| 2 |
|
| 3 |
File: oct6100_playout_buf_inst.h |
| 4 |
|
| 5 |
Copyright (c) 2001-2007 Octasic Inc. |
| 6 |
|
| 7 |
Description: |
| 8 |
|
| 9 |
File containing all defines, macros, and structures pertaining to the file |
| 10 |
oct6100_playout_buf.c. All elements defined in this file are for public |
| 11 |
usage of the API. All private elements are defined in the |
| 12 |
oct6100_playout_buf_priv.h file. |
| 13 |
|
| 14 |
This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is |
| 15 |
free software; you can redistribute it and/or modify it under the terms of |
| 16 |
the GNU General Public License as published by the Free Software Foundation; |
| 17 |
either version 2 of the License, or (at your option) any later version. |
| 18 |
|
| 19 |
The OCT6100 GPL API is distributed in the hope that it will be useful, but |
| 20 |
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 21 |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 22 |
for more details. |
| 23 |
|
| 24 |
You should have received a copy of the GNU General Public License |
| 25 |
along with the OCT6100 GPL API; if not, write to the Free Software |
| 26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 27 |
|
| 28 |
$Octasic_Release: OCT612xAPI-01.00-PR49 $ |
| 29 |
|
| 30 |
$Octasic_Revision: 10 $ |
| 31 |
|
| 32 |
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
| 33 |
|
| 34 |
#ifndef __OCT6100_PLAYOUT_BUF_INST_H__ |
| 35 |
#define __OCT6100_PLAYOUT_BUF_INST_H__ |
| 36 |
|
| 37 |
/***************************** INCLUDE FILES *******************************/ |
| 38 |
|
| 39 |
|
| 40 |
/***************************** DEFINES *************************************/ |
| 41 |
|
| 42 |
#define mOCT6100_GET_BUFFER_MEMORY_NODE_LIST_PNT( pSharedInfo, pList ) \ |
| 43 |
pList = ( tPOCT6100_API_BUFFER_PLAYOUT_MALLOC_NODE )(( PUINT8 )pSharedInfo + pSharedInfo->ulPlayoutBufMemoryNodeListOfst ); |
| 44 |
|
| 45 |
#define mOCT6100_GET_BUFFER_MEMORY_NODE_ENTRY_PNT( pSharedInfo, pEntry, ulIndex ) \ |
| 46 |
pEntry = (( tPOCT6100_API_BUFFER_PLAYOUT_MALLOC_NODE )(( PUINT8 )pSharedInfo + pSharedInfo->ulPlayoutBufMemoryNodeListOfst)) + ulIndex; |
| 47 |
|
| 48 |
/***************************** TYPES ***************************************/ |
| 49 |
|
| 50 |
typedef struct _OCT6100_API_BUFFER_PLAYOUT_MALLOC_NODE_ |
| 51 |
{ |
| 52 |
/* Next node. */ |
| 53 |
UINT32 ulNext; |
| 54 |
|
| 55 |
/* Previous node. */ |
| 56 |
UINT32 ulPrevious; |
| 57 |
|
| 58 |
/* Start address of this node. */ |
| 59 |
UINT32 ulStartAddress; |
| 60 |
|
| 61 |
/* Size of this node. */ |
| 62 |
UINT32 ulSize; |
| 63 |
|
| 64 |
/* Allocated node? Free node? */ |
| 65 |
UINT8 fAllocated; |
| 66 |
|
| 67 |
} tOCT6100_API_BUFFER_PLAYOUT_MALLOC_NODE, *tPOCT6100_API_BUFFER_PLAYOUT_MALLOC_NODE; |
| 68 |
|
| 69 |
typedef struct _OCT6100_API_BUFFER_ |
| 70 |
{ |
| 71 |
/* Flag specifying whether the entry is used or not. */ |
| 72 |
UINT8 fReserved; |
| 73 |
|
| 74 |
/* Pcm law of the buffer. */ |
| 75 |
UINT8 byBufferPcmLaw; |
| 76 |
|
| 77 |
/* Number of channels currently playing this buffer.*/ |
| 78 |
UINT16 usDependencyCnt; |
| 79 |
|
| 80 |
/* Length of the buffer ( in bytes ).*/ |
| 81 |
UINT32 ulBufferSize; |
| 82 |
|
| 83 |
/* Address in external memory of the buffer. */ |
| 84 |
UINT32 ulBufferBase; |
| 85 |
|
| 86 |
} tOCT6100_API_BUFFER, *tPOCT6100_API_BUFFER; |
| 87 |
|
| 88 |
#endif /* __OCT6100_PLAYOUT_BUF_INST_H__ */ |