1 | /* $Id: HDAStreamMap.h 67698 2017-06-29 13:58:29Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * HDAStreamMap.h - Stream mapping functions for HD Audio.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2017 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef HDA_STREAMMAP_H
|
---|
19 | #define HDA_STREAMMAP_H
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Structure for keeping an audio stream data mapping.
|
---|
23 | */
|
---|
24 | typedef struct HDASTREAMMAPPING
|
---|
25 | {
|
---|
26 | /** The stream's layout. */
|
---|
27 | PDMAUDIOSTREAMLAYOUT enmLayout;
|
---|
28 | /** Number of audio channels in this stream. */
|
---|
29 | uint8_t cChannels;
|
---|
30 | /** Array of audio channels. */
|
---|
31 | R3PTRTYPE(PPDMAUDIOSTREAMCHANNEL) paChannels;
|
---|
32 | /** Circular buffer holding for holding audio data for this mapping. */
|
---|
33 | R3PTRTYPE(PRTCIRCBUF) pCircBuf;
|
---|
34 | } HDASTREAMMAPPING, *PHDASTREAMMAPPING;
|
---|
35 |
|
---|
36 | /** @name Stream mapping functions.
|
---|
37 | * @{
|
---|
38 | */
|
---|
39 | #ifdef IN_RING3
|
---|
40 | int hdaStreamMapInit(PHDASTREAMMAPPING pMapping, PPDMAUDIOPCMPROPS pProps);
|
---|
41 | void hdaStreamMapDestroy(PHDASTREAMMAPPING pMapping);
|
---|
42 | void hdaStreamMapReset(PHDASTREAMMAPPING pMapping);
|
---|
43 | #endif /* IN_RING3 */
|
---|
44 | /** @} */
|
---|
45 |
|
---|
46 | #endif /* !HDA_STREAMMAP_H */
|
---|
47 |
|
---|