Changeset 105605 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Aug 6, 2024 2:00:56 PM (9 months ago)
- svn:sync-xref-src-repo-rev:
- 164284
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r105555 r105605 7566 7566 #ifdef VBOX_WITH_RECORDING 7567 7567 7568 int Console::i_recordingGetSettings(settings::Recording Settings &recording)7568 int Console::i_recordingGetSettings(settings::Recording &Settings) 7569 7569 { 7570 7570 Assert(mMachine.isNotNull()); 7571 7571 7572 recording.applyDefaults();7572 Settings.applyDefaults(); 7573 7573 7574 7574 ComPtr<IRecordingSettings> pRecordSettings; … … 7579 7579 hrc = pRecordSettings->COMGETTER(Enabled)(&fTemp); 7580 7580 AssertComRCReturn(hrc, VERR_INVALID_PARAMETER); 7581 recording.common.fEnabled = RT_BOOL(fTemp);7581 Settings.common.fEnabled = RT_BOOL(fTemp); 7582 7582 7583 7583 SafeIfaceArray<IRecordingScreenSettings> paRecScreens; … … 7587 7587 for (unsigned long i = 0; i < (unsigned long)paRecScreens.size(); ++i) 7588 7588 { 7589 settings::RecordingScreen SettingsrecScreenSettings;7589 settings::RecordingScreen recScreenSettings; 7590 7590 ComPtr<IRecordingScreenSettings> pRecScreenSettings = paRecScreens[i]; 7591 7591 … … 7645 7645 AssertComRCReturn(hrc, VERR_INVALID_PARAMETER); 7646 7646 7647 recording.mapScreens[i] = recScreenSettings;7648 } 7649 7650 Assert( recording.mapScreens.size() == paRecScreens.size());7647 Settings.mapScreens[i] = recScreenSettings; 7648 } 7649 7650 Assert(Settings.mapScreens.size() == paRecScreens.size()); 7651 7651 7652 7652 return VINF_SUCCESS; … … 7660 7660 int Console::i_recordingCreate(ComPtr<IProgress> &pProgress) 7661 7661 { 7662 settings::Recording Settings recordingSettings;7663 int vrc = i_recordingGetSettings( recordingSettings);7662 settings::Recording Settings; 7663 int vrc = i_recordingGetSettings(Settings); 7664 7664 if (RT_SUCCESS(vrc)) 7665 vrc = mRecording.mCtx.Create(this, recordingSettings, pProgress);7665 vrc = mRecording.mCtx.Create(this, Settings, pProgress); 7666 7666 7667 7667 if (RT_FAILURE(vrc)) -
trunk/src/VBox/Main/src-client/DrvAudioRec.cpp
r105006 r105605 206 206 * @param Settings Recording settings to apply. 207 207 */ 208 int AudioVideoRec::applyConfiguration(const settings::Recording Settings&Settings)208 int AudioVideoRec::applyConfiguration(const settings::Recording &Settings) 209 209 { 210 210 /** @todo Do some validation here. */ … … 220 220 221 221 AssertReturn(mSettings.mapScreens.size() >= 1, VERR_INVALID_PARAMETER); 222 const settings::RecordingScreen Settings&screenSettings = mSettings.mapScreens[idxScreen];222 const settings::RecordingScreen &screenSettings = mSettings.mapScreens[idxScreen]; 223 223 224 224 int vrc = pVMM->pfnCFGMR3InsertInteger(pLunCfg, "ContainerType", (uint64_t)screenSettings.enmDest); -
trunk/src/VBox/Main/src-client/Recording.cpp
r105436 r105605 239 239 * @param pProgress Where to return the created progress object on success. 240 240 */ 241 int RecordingContext::progressCreate(const settings::Recording Settings&Settings, ComObjPtr<Progress> &pProgress)241 int RecordingContext::progressCreate(const settings::Recording &Settings, ComObjPtr<Progress> &pProgress) 242 242 { 243 243 /* Determine the number of operations the recording progress has. … … 249 249 while (itScreen != Settings.mapScreens.end()) 250 250 { 251 settings::RecordingScreen Settingsconst &screenSettings = itScreen->second;251 settings::RecordingScreen const &screenSettings = itScreen->second; 252 252 if (screenSettings.ulMaxTimeS == 0) 253 253 { … … 671 671 * @param screenSettings Reference to recording screen settings to use for initialization. 672 672 */ 673 int RecordingContext::audioInit(const settings::RecordingScreen Settings&screenSettings)673 int RecordingContext::audioInit(const settings::RecordingScreen &screenSettings) 674 674 { 675 675 RecordingAudioCodec_T const enmCodec = screenSettings.Audio.enmCodec; … … 754 754 * @param pProgress Progress object returned on success. 755 755 */ 756 int RecordingContext::createInternal(Console *ptrConsole, const settings::Recording Settings&Settings,756 int RecordingContext::createInternal(Console *ptrConsole, const settings::Recording &Settings, 757 757 ComPtr<IProgress> &pProgress) 758 758 { … … 767 767 768 768 /* We always use the audio settings from screen 0, as we multiplex the audio data anyway. */ 769 settings::RecordingScreen Settingsconst &screen0Settings = itScreen0->second;769 settings::RecordingScreen const &screen0Settings = itScreen0->second; 770 770 771 771 vrc = this->audioInit(screen0Settings); … … 992 992 * @returns The recording context's current settings. 993 993 */ 994 const settings::Recording Settings&RecordingContext::GetConfig(void) const994 const settings::Recording &RecordingContext::GetConfig(void) const 995 995 { 996 996 return m_Settings; … … 1072 1072 * @param pProgress Progress object returned on success. 1073 1073 */ 1074 int RecordingContext::Create(Console *ptrConsole, const settings::Recording Settings&Settings, ComPtr<IProgress> &pProgress)1074 int RecordingContext::Create(Console *ptrConsole, const settings::Recording &Settings, ComPtr<IProgress> &pProgress) 1075 1075 { 1076 1076 return createInternal(ptrConsole, Settings, pProgress); -
trunk/src/VBox/Main/src-client/RecordingCodec.cpp
r105095 r105605 797 797 */ 798 798 static int recordingCodecInitAudio(const PRECORDINGCODEC pCodec, 799 const PRECORDINGCODECCALLBACKS pCallbacks, const settings::RecordingScreen Settings&Settings)799 const PRECORDINGCODECCALLBACKS pCallbacks, const settings::RecordingScreen &Settings) 800 800 { 801 801 AssertReturn(pCodec->Parms.enmType == RECORDINGCODECTYPE_AUDIO, VERR_INVALID_PARAMETER); 802 802 803 803 com::Utf8Str strCodec; 804 settings::RecordingScreen Settings::audioCodecToString(pCodec->Parms.enmAudioCodec, strCodec);804 settings::RecordingScreen::audioCodecToString(pCodec->Parms.enmAudioCodec, strCodec); 805 805 LogRel(("Recording: Initializing audio codec '%s'\n", strCodec.c_str())); 806 806 … … 857 857 */ 858 858 static int recordingCodecInitVideo(const PRECORDINGCODEC pCodec, 859 const PRECORDINGCODECCALLBACKS pCallbacks, const settings::RecordingScreen Settings&Settings)859 const PRECORDINGCODECCALLBACKS pCallbacks, const settings::RecordingScreen &Settings) 860 860 { 861 861 com::Utf8Str strTemp; 862 settings::RecordingScreen Settings::videoCodecToString(pCodec->Parms.enmVideoCodec, strTemp);862 settings::RecordingScreen::videoCodecToString(pCodec->Parms.enmVideoCodec, strTemp); 863 863 LogRel(("Recording: Initializing video codec '%s'\n", strTemp.c_str())); 864 864 … … 1052 1052 * @param Settings Settings to use for initializing the codec. 1053 1053 */ 1054 int recordingCodecInit(const PRECORDINGCODEC pCodec, const PRECORDINGCODECCALLBACKS pCallbacks, const settings::RecordingScreen Settings&Settings)1054 int recordingCodecInit(const PRECORDINGCODEC pCodec, const PRECORDINGCODECCALLBACKS pCallbacks, const settings::RecordingScreen &Settings) 1055 1055 { 1056 1056 int vrc = RTCritSectInit(&pCodec->CritSect); -
trunk/src/VBox/Main/src-client/RecordingStream.cpp
r105266 r105605 47 47 48 48 49 RecordingStream::RecordingStream(RecordingContext *a_pCtx, uint32_t uScreen, const settings::RecordingScreen Settings&Settings)49 RecordingStream::RecordingStream(RecordingContext *a_pCtx, uint32_t uScreen, const settings::RecordingScreen &Settings) 50 50 : m_enmState(RECORDINGSTREAMSTATE_UNINITIALIZED) 51 51 { … … 67 67 * @param screenSettings Recording settings to use. 68 68 */ 69 int RecordingStream::open(const settings::RecordingScreen Settings&screenSettings)69 int RecordingStream::open(const settings::RecordingScreen &screenSettings) 70 70 { 71 71 /* Sanity. */ … … 131 131 * @returns The recording stream's used configuration. 132 132 */ 133 const settings::RecordingScreen Settings&RecordingStream::GetConfig(void) const133 const settings::RecordingScreen &RecordingStream::GetConfig(void) const 134 134 { 135 135 return m_ScreenSettings; … … 710 710 * @param Settings Recording screen configuration to use for initialization. 711 711 */ 712 int RecordingStream::Init(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreen Settings&Settings)712 int RecordingStream::Init(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreen &Settings) 713 713 { 714 714 return initInternal(pCtx, uScreen, Settings); … … 724 724 */ 725 725 int RecordingStream::initInternal(RecordingContext *pCtx, uint32_t uScreen, 726 const settings::RecordingScreen Settings&screenSettings)726 const settings::RecordingScreen &screenSettings) 727 727 { 728 728 AssertReturn(m_enmState == RECORDINGSTREAMSTATE_UNINITIALIZED, VERR_WRONG_ORDER); … … 739 739 m_ScreenSettings = screenSettings; 740 740 741 settings::RecordingScreen Settings*pSettings = &m_ScreenSettings;741 settings::RecordingScreen *pSettings = &m_ScreenSettings; 742 742 743 743 int vrc = RTCritSectInit(&m_CritSect); … … 1048 1048 * @param screenSettings Screen settings to use. 1049 1049 */ 1050 int RecordingStream::initVideo(const settings::RecordingScreen Settings&screenSettings)1050 int RecordingStream::initVideo(const settings::RecordingScreen &screenSettings) 1051 1051 { 1052 1052 /* Sanity. */
Note:
See TracChangeset
for help on using the changeset viewer.