/* $Id$ */
/** @file
* VirtualBox driver interface to video recording backend.
*/
/*
* Copyright (C) 2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ____H_DRVAUDIOVIDEOREC
#define ____H_DRVAUDIOVIDEOREC
#include <VBox/com/ptr.h>
#include <VBox/vmm/pdmdrv.h>
#include <VBox/vmm/pdmifs.h>
class Console;
class AudioVideoRec
{
public:
AudioVideoRec(Console *pConsole);
virtual ~AudioVideoRec(void);
public:
static const PDMDRVREG DrvReg;
Console *getParent(void) { return mParent; }
public:
int handleVideoRecSvrCmdAudioInputIntercept(bool fIntercept);
int handleVideoRecSvrCmdAudioInputEventBegin(void *pvContext, int iSampleHz, int cChannels, int cBits, bool fUnsigned);
int handleVideoRecSvrCmdAudioInputEventData(void *pvContext, const void *pvData, uint32_t cbData);
int handleVideoRecSvrCmdAudioInputEventEnd(void *pvContext);
public:
static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
private:
/** Pointer to the associated video recording audio driver. */
struct DRVAUDIOVIDEOREC *mpDrv;
/** Pointer to parent. */
Console * const mParent;
};
#endif /* !____H_DRVAUDIOVIDEOREC */