VirtualBox

source: vbox/trunk/src/VBox/Devices/Audio/HDAStreamMap.h@ 69304

Last change on this file since 69304 was 67698, checked in by vboxsync, 7 years ago

Audio/HDA: Split out StreamMap and StreamChannel functions in own files for easier maintenance.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
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 */
24typedef 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
40int hdaStreamMapInit(PHDASTREAMMAPPING pMapping, PPDMAUDIOPCMPROPS pProps);
41void hdaStreamMapDestroy(PHDASTREAMMAPPING pMapping);
42void hdaStreamMapReset(PHDASTREAMMAPPING pMapping);
43#endif /* IN_RING3 */
44/** @} */
45
46#endif /* !HDA_STREAMMAP_H */
47
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette