Changeset 70563 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jan 12, 2018 5:52:10 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120250
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/AudioDriver.h
r70544 r70563 30 30 struct AudioDriverCfg 31 31 { 32 AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, unsigned a_uLUN = 0, 33 Utf8Str a_strName = "") 32 AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, Utf8Str a_strName = "") 34 33 : strDev(a_strDev) 35 34 , uInst(a_uInst) 36 , uLUN(a_uLUN)37 35 , strName(a_strName) { } 38 36 … … 41 39 this->strDev = that.strDev; 42 40 this->uInst = that.uInst; 43 this->uLUN = that.uLUN;44 41 this->strName = that.strName; 45 42 … … 51 48 /** The device instance. */ 52 49 unsigned uInst; 53 /** The LUN the driver is attached to.54 * Set the UINT8_MAX if not attached. */55 unsigned uLUN;56 50 /** The driver name. */ 57 51 Utf8Str strName; … … 76 70 Console *GetParent(void) { return mpConsole; } 77 71 72 int Initialize(AudioDriverCfg *pCfg); 73 78 74 bool IsAttached(void) { return mfAttached; } 79 75 80 static DECLCALLBACK(int) Attach(AudioDriver *pThis , AudioDriverCfg *pCfg);76 static DECLCALLBACK(int) Attach(AudioDriver *pThis); 81 77 82 78 static DECLCALLBACK(int) Detach(AudioDriver *pThis); 83 79 84 int Configure(AudioDriverCfg *pCfg, bool fAttach); 80 protected: 85 81 86 protected: 82 int configure(unsigned uLUN, bool fAttach); 87 83 88 84 /** … … 105 101 /** Whether the driver is attached or not. */ 106 102 bool mfAttached; 103 /** The LUN the driver is attached to. 104 * Set the UINT8_MAX if not attached. */ 105 unsigned muLUN; 107 106 }; 108 107 -
trunk/src/VBox/Main/include/DisplayImpl.h
r70075 r70563 212 212 VIDEORECFEATURES i_videoRecGetEnabled(void); 213 213 bool i_videoRecStarted(void); 214 # ifdef VBOX_WITH_AUDIO_VIDEOREC 215 int i_videoRecConfigureAudioDriver(const Utf8Str& strAdapter, unsigned uInstance, unsigned uLUN, bool fAttach); 216 # endif 217 static DECLCALLBACK(int) i_videoRecConfigure(Display *pThis, PVIDEORECCFG pCfg, bool fAttachDetach, unsigned *puLUN); 214 void i_videoRecInvalidate(); 218 215 int i_videoRecSendAudio(const void *pvData, size_t cbData, uint64_t uDurationMs); 219 216 int i_videoRecStart(void); -
trunk/src/VBox/Main/include/DrvAudioVideoRec.h
r68895 r70563 5 5 6 6 /* 7 * Copyright (C) 2017 Oracle Corporation7 * Copyright (C) 2017-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 23 23 #include <VBox/vmm/pdmifs.h> 24 24 25 #include "AudioDriver.h" 26 27 using namespace com; 28 25 29 class Console; 26 30 27 class AudioVideoRec 31 class AudioVideoRec : public AudioDriver 28 32 { 29 33 … … 37 41 static const PDMDRVREG DrvReg; 38 42 39 Console *getParent(void) { return mpConsole; }40 41 43 public: 42 44 … … 48 50 private: 49 51 52 void configureDriver(PCFGMNODE pLunCfg); 53 50 54 /** Pointer to the associated video recording audio driver. */ 51 55 struct DRVAUDIOVIDEOREC *mpDrv; 52 /** Pointer to parent. */53 Console * const mpConsole;54 56 }; 55 57
Note:
See TracChangeset
for help on using the changeset viewer.