1 | /* $Id: DrvAudioRec.h 96407 2022-08-22 17:43:14Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox driver interface video recording audio backend.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2017-2022 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef MAIN_INCLUDED_DrvAudioRec_h
|
---|
29 | #define MAIN_INCLUDED_DrvAudioRec_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | #include <VBox/com/ptr.h>
|
---|
35 | #include <VBox/settings.h>
|
---|
36 | #include <VBox/vmm/pdmdrv.h>
|
---|
37 | #include <VBox/vmm/pdmifs.h>
|
---|
38 |
|
---|
39 | #include "AudioDriver.h"
|
---|
40 | #include "Recording.h"
|
---|
41 |
|
---|
42 | using namespace com;
|
---|
43 |
|
---|
44 | class Console;
|
---|
45 |
|
---|
46 | class AudioVideoRec : public AudioDriver
|
---|
47 | {
|
---|
48 |
|
---|
49 | public:
|
---|
50 |
|
---|
51 | AudioVideoRec(Console *pConsole);
|
---|
52 | virtual ~AudioVideoRec(void);
|
---|
53 |
|
---|
54 | public:
|
---|
55 |
|
---|
56 | static const PDMDRVREG DrvReg;
|
---|
57 |
|
---|
58 | public:
|
---|
59 |
|
---|
60 | int applyConfiguration(const settings::RecordingSettings &Settings);
|
---|
61 |
|
---|
62 | public:
|
---|
63 |
|
---|
64 | static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
|
---|
65 | static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
|
---|
66 | static DECLCALLBACK(void) drvPowerOff(PPDMDRVINS pDrvIns);
|
---|
67 |
|
---|
68 | private:
|
---|
69 |
|
---|
70 | virtual int configureDriver(PCFGMNODE pLunCfg, PCVMMR3VTABLE pVMM) RT_OVERRIDE;
|
---|
71 |
|
---|
72 | /** Pointer to the associated video recording audio driver. */
|
---|
73 | struct DRVAUDIORECORDING *mpDrv;
|
---|
74 | /** Recording settings used for configuring the driver. */
|
---|
75 | struct settings::RecordingSettings mSettings;
|
---|
76 | };
|
---|
77 |
|
---|
78 | #endif /* !MAIN_INCLUDED_DrvAudioRec_h */
|
---|
79 |
|
---|