VirtualBox

Changeset 70821 in vbox


Ignore:
Timestamp:
Jan 31, 2018 10:34:09 AM (7 years ago)
Author:
vboxsync
Message:

DrvAudio: Added DrvAudioHlpFileIsOpen().

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvAudio.h

    r70639 r70821  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    196196int DrvAudioHlpFileDelete(PPDMAUDIOFILE pFile);
    197197size_t DrvAudioHlpFileGetDataSize(PPDMAUDIOFILE pFile);
     198bool DrvAudioHlpFileIsOpen(PPDMAUDIOFILE pFile);
    198199int DrvAudioHlpFileWrite(PPDMAUDIOFILE pFile, const void *pvBuf, size_t cbBuf, uint32_t fFlags);
    199200
  • trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp

    r70584 r70821  
    88
    99/*
    10  * Copyright (C) 2006-2017 Oracle Corporation
     10 * Copyright (C) 2006-2018 Oracle Corporation
    1111 *
    1212 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    14361436
    14371437/**
     1438 * Returns whether the given audio file is open and in use or not.
     1439 *
     1440 * @return  bool                True if open, false if not.
     1441 * @param   pFile               Audio file handle to check open status for.
     1442 */
     1443bool DrvAudioHlpFileIsOpen(PPDMAUDIOFILE pFile)
     1444{
     1445    if (!pFile)
     1446        return false;
     1447
     1448    return RTFileIsValid(pFile->hFile);
     1449}
     1450
     1451/**
    14381452 * Write PCM data to a wave (.WAV) file.
    14391453 *
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