VirtualBox

Ignore:
Timestamp:
Jan 5, 2017 5:26:48 PM (8 years ago)
Author:
vboxsync
Message:

Audio/Main: Some (ground) work for audio support for video recording.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r65120 r65162  
    55
    66/*
    7  * Copyright (C) 2005-2016 Oracle Corporation
     7 * Copyright (C) 2005-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    5959# include "DrvAudioVRDE.h"
    6060#endif
     61#ifdef VBOX_WITH_AUDIO_VIDEOREC
     62# include "DrvAudioVideoRec.h"
     63#endif
    6164#include "Nvram.h"
    6265#ifdef VBOX_WITH_USB_CARDREADER
     
    392395    , m_pVMMDev(NULL)
    393396    , mAudioVRDE(NULL)
     397#ifdef VBOX_WITH_AUDIO_VIDEOREC
     398    , mAudioVideoRec(NULL)
     399#endif
    394400    , mNvram(NULL)
    395401#ifdef VBOX_WITH_USB_CARDREADER
     
    575581        AssertReturn(mAudioVRDE, E_FAIL);
    576582#endif
     583#ifdef VBOX_WITH_AUDIO_VIDEOREC
     584        unconst(mAudioVideoRec) = new AudioVideoRec(this);
     585        AssertReturn(mAudioVideoRec, E_FAIL);
     586#endif
    577587        FirmwareType_T enmFirmwareType;
    578588        mMachine->COMGETTER(FirmwareType)(&enmFirmwareType);
     
    716726        delete mAudioVRDE;
    717727        unconst(mAudioVRDE) = NULL;
     728    }
     729#endif
     730
     731#ifdef VBOX_WITH_AUDIO_VIDEOREC
     732    if (mAudioVideoRec)
     733    {
     734        delete mAudioVideoRec;
     735        unconst(mAudioVideoRec) = NULL;
    718736    }
    719737#endif
Note: See TracChangeset for help on using the changeset viewer.

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