VirtualBox

vbox的更動 69119 路徑 trunk/src/VBox


忽略:
時間撮記:
2017-10-17 下午07:08:38 (7 年 以前)
作者:
vboxsync
訊息:

Audio: More cleanups (missing keywords, incorrect #endif docs, stuff)

位置:
trunk/src/VBox/Devices/Audio
檔案:
修改 32 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp

    r68271 r69119  
    11/* $Id$ */
    22/** @file
    3  * VBox audio: Audio mixing buffer for converting reading/writing audio data.
     3 * Audio mixing buffer for converting reading/writing audio data.
    44 */
    55
  • trunk/src/VBox/Devices/Audio/AudioMixBuffer.h

    r68132 r69119  
    11/* $Id$ */
    22/** @file
    3  * VBox audio - Mixing buffer to convert audio samples to/from different rates / formats.
     3 * Audio Mixing bufer convert audio samples to/from different rates / formats.
    44 */
    55
  • trunk/src/VBox/Devices/Audio/AudioMixer.cpp

    r68899 r69119  
    11/* $Id$ */
    22/** @file
    3  * VBox audio: Mixing routines, mainly used by the various audio device
    4  *             emulations to achieve proper multiplexing from/to attached
    5  *             devices LUNs.
     3 * Audio mixing routines for multiplexing audio sources in device emulations.
    64 *
    75 * This mixer acts as a layer between the audio connector interface and
    8  * the actual device emulation, providing mechanisms for audio sources (input) and
    9  * audio sinks (output).
    10  *
    11  * Think of this mixer as kind of a high(er) level interface for the audio connector
    12  * interface, abstracting common tasks such as creating and managing various audio
    13  * sources and sinks. This mixer class is purely optional and can be left out when
    14  * implementing a new device emulation, using only the audi connector interface
    15  * instead. For example, the SB16 emulation does not use this mixer and does all its
    16  * stream management on its own.
     6 * the actual device emulation, providing mechanisms for audio sources (input)
     7 * and audio sinks (output).
     8 *
     9 * Think of this mixer as kind of a high(er) level interface for the audio
     10 * connector interface, abstracting common tasks such as creating and managing
     11 * various audio sources and sinks. This mixer class is purely optional and can
     12 * be left out when implementing a new device emulation, using only the audi
     13 * connector interface instead.  For example, the SB16 emulation does not use
     14 * this mixer and does all its stream management on its own.
    1715 *
    1816 * As audio driver instances are handled as LUNs on the device level, this
     
    4038 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    4139 */
     40
     41
     42/*********************************************************************************************************************************
     43*   Header Files                                                                                                                 *
     44*********************************************************************************************************************************/
    4245#define LOG_GROUP LOG_GROUP_AUDIO_MIXER
    4346#include <VBox/log.h>
     
    5659#include <iprt/string.h>
    5760
     61
     62/*********************************************************************************************************************************
     63*   Internal Functions                                                                                                           *
     64*********************************************************************************************************************************/
    5865static int audioMixerRemoveSinkInternal(PAUDIOMIXER pMixer, PAUDMIXSINK pSink);
    5966
  • trunk/src/VBox/Devices/Audio/AudioMixer.h

    r68898 r69119  
    246246bool AudioMixerStreamIsValid(PAUDMIXSTREAM pStream);
    247247
    248 #endif /* AUDIO_MIXER_H */
    249 
     248#endif /* !AUDIO_MIXER_H */
     249
  • trunk/src/VBox/Devices/Audio/DevHDA.cpp

    r68909 r69119  
    52945294#endif /* IN_RING3 */
    52955295#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
     5296
  • trunk/src/VBox/Devices/Audio/DevHDA.h

    • 屬性 svn:keywords 設為 Author Date Id Revision
    r69118 r69119  
    222222#endif
    223223
    224 #endif /* DEV_HDA_H */
    225 
     224#endif /* !DEV_HDA_H */
     225
  • trunk/src/VBox/Devices/Audio/DevHDACommon.cpp

    • 屬性 svn:keywordsId Revision 變更至 Author Date Id Revision
  • trunk/src/VBox/Devices/Audio/DevHDACommon.h

    r67907 r69119  
    603603/** @} */
    604604
    605 #endif /* DEV_HDA_H_COMMON */
    606 
     605#endif /* !DEV_HDA_H_COMMON */
     606
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r68907 r69119  
    40794079#endif /* !IN_RING3 */
    40804080#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
     4081
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r68919 r69119  
    3939 * THE SOFTWARE.
    4040 */
     41
     42
     43/*********************************************************************************************************************************
     44*   Header Files                                                                                                                 *
     45*********************************************************************************************************************************/
    4146#define LOG_GROUP LOG_GROUP_DEV_SB16
    4247#include <VBox/log.h>
     
    5863#include "DrvAudio.h"
    5964
     65
     66/*********************************************************************************************************************************
     67*   Defined Constants And Macros                                                                                                 *
     68*********************************************************************************************************************************/
    6069/** Current saved state version. */
    6170#define SB16_SAVE_STATE_VERSION         2
     
    7180                            RTIOPORT nport, uint32_t val, unsigned cb)
    7281
     82/*********************************************************************************************************************************
     83*   Global Variables                                                                                                             *
     84*********************************************************************************************************************************/
    7385static const char e3[] = "COPYRIGHT (C) CREATIVE TECHNOLOGY LTD, 1992.";
    7486
     87
     88
     89/*********************************************************************************************************************************
     90*   Structures and Typedefs                                                                                                      *
     91*********************************************************************************************************************************/
    7592/**
    7693 * Structure defining a (host backend) driver stream.
     
    206223} SB16STATE, *PSB16STATE;
    207224
     225
     226/*********************************************************************************************************************************
     227*   Internal Functions                                                                                                           *
     228*********************************************************************************************************************************/
    208229static int sb16CreateDrvStream(PSB16STATE pThis, PPDMAUDIOSTREAMCFG pCfg, PSB16DRIVER pDrv);
    209230static void sb16DestroyDrvStream(PSB16STATE pThis, PSB16DRIVER pDrv);
     
    214235static void sb16TimerMaybeStop(PSB16STATE pThis);
    215236#endif
     237
     238
    216239
    217240/**
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r68897 r69119  
    1818 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1919 */
     20
    2021#define LOG_GROUP LOG_GROUP_DRV_AUDIO
    2122#include <VBox/log.h>
  • trunk/src/VBox/Devices/Audio/DrvAudio.h

    r68892 r69119  
    3636#  define VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH "/tmp/"
    3737# endif
    38 #endif /* VBOX_AUDIO_DEBUG_DUMP_PCM_DATA */
     38#endif
    3939
    4040typedef enum
     
    195195#define AUDIO_MAKE_FOURCC(c0, c1, c2, c3) RT_H2LE_U32_C(RT_MAKE_U32_FROM_U8(c0, c1, c2, c3))
    196196
    197 #endif /* DRV_AUDIO_H */
     197#endif /* !DRV_AUDIO_H */
    198198
  • trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp

    r68902 r69119  
    11/* $Id$ */
    22/** @file
    3  * Intermedia audio driver, common routines. These are also used
    4  * in the drivers which are bound to Main, e.g. the VRDE or the
    5  * video audio recording drivers.
     3 * Intermedia audio driver, common routines.
     4 *
     5 * These are also used in the drivers which are bound to Main, e.g. the VRDE
     6 * or the video audio recording drivers.
    67 */
    78
     
    1718 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1819 */
     20
     21/*********************************************************************************************************************************
     22*   Header Files                                                                                                                 *
     23*********************************************************************************************************************************/
    1924#include <iprt/alloc.h>
    2025#include <iprt/asm-math.h>
     
    3944#include "AudioMixBuffer.h"
    4045
    41 #pragma pack(1)
     46
     47/*********************************************************************************************************************************
     48*   Structures and Typedefs                                                                                                      *
     49*********************************************************************************************************************************/
    4250/**
    4351 * Structure for building up a .WAV file header.
     
    6169    uint32_t u32Size2;
    6270} AUDIOWAVFILEHDR, *PAUDIOWAVFILEHDR;
    63 #pragma pack()
     71AssertCompileSize(AUDIOWAVFILEHDR, 11*4);
    6472
    6573/**
     
    7179    AUDIOWAVFILEHDR Hdr;
    7280} AUDIOWAVFILEDATA, *PAUDIOWAVFILEDATA;
     81
     82
     83
    7384
    7485/**
  • trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp

    r68376 r69119  
    11/* $Id$ */
    22/** @file
    3  * VBox audio devices: ALSA audio driver.
     3 * ALSA audio driver.
    44 */
    55
  • trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp

    r69118 r69119  
    27202720    PDM_DRVREG_VERSION
    27212721};
     2722
  • trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp

    r68740 r69119  
    11/* $Id$ */
    22/** @file
    3  * Debug audio driver -- host backend for dumping and injecting audio data
    4  * from/to the device emulation.
     3 * Debug audio driver.
     4 *
     5 * Host backend for dumping and injecting audio data from/to the device emulation.
    56 */
    67
     
    1516 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1617 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    17  * --------------------------------------------------------------------
    1818 */
    1919
  • trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp

    r68272 r69119  
    11/* $Id$ */
    22/** @file
    3  * NULL audio driver -- also acts as a fallback if no
    4  * other backend is available.
     3 * NULL audio driver.
     4 *
     5 * This also acts as a fallback if no other backend is available.
    56 */
    67
  • trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp

    r68272 r69119  
    1414 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1515 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    16  * --------------------------------------------------------------------
    17  */
     16 */
     17
    1818#include <errno.h>
    1919#include <fcntl.h>
  • trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp

    r68272 r69119  
     1/* $Id$ */
    12/** @file
    2  * VaKit audio driver -- host backend for dumping and injecting audio data
    3  * from/to the device emulation.
     3 * ValidationKit audio driver - host backend for dumping and injecting audio data
     4 *                              from/to the device emulation.
    45 */
    56
     
    1415 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1516 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    16  * --------------------------------------------------------------------
    1717 */
    1818
  • trunk/src/VBox/Devices/Audio/HDACodec.h

    r67899 r69119  
    142142#define HDA_SSM_VERSION_1 1
    143143
    144 #endif /* DEV_HDA_CODEC_H */
     144#endif /* !DEV_HDA_CODEC_H */
    145145
  • trunk/src/VBox/Devices/Audio/HDAStream.cpp

    • 屬性 svn:keywordsId Revision 變更至 Author Date Id Revision
    r69118 r69119  
    13571357
    13581358#endif /* IN_RING3 */
     1359
  • trunk/src/VBox/Devices/Audio/HDAStream.h

    • 屬性 svn:keywords 設為 Author Date Id Revision
  • trunk/src/VBox/Devices/Audio/HDAStreamPeriod.cpp

    • 屬性 svn:keywordsId Revision 變更至 Author Date Id Revision
  • trunk/src/VBox/Devices/Audio/HDAStreamPeriod.h

    • 屬性 svn:keywords 設為 Author Date Id Revision
  • trunk/src/VBox/Devices/Audio/Makefile.kup

    • 屬性 svn:keywords 設為 Author Date Id Revision
  • trunk/src/VBox/Devices/Audio/VBoxMMNotificationClient.h

    r68752 r69119  
    8585    /** @} */
    8686};
    87 #endif /* ___VBOX_MMNOTIFICATIONCLIENT_H___ */
     87#endif /* !___VBOX_MMNOTIFICATIONCLIENT_H___ */
    8888
  • trunk/src/VBox/Devices/Audio/alsa_mangling.h

    r68376 r69119  
     1/* $Id$ */
    12/** @file
     3 * Mangle libasound symbols.
    24 *
    3  * Mangle libasound symbols. This is necessary on hosts which don't
    4  * support the -fvisibility gcc switch.
     5 * This is necessary on hosts which don't support the -fvisibility gcc switch.
    56 */
    67
  • trunk/src/VBox/Devices/Audio/alsa_stubs.c

    r68376 r69119  
    209209    return rc;
    210210}
     211
  • trunk/src/VBox/Devices/Audio/alsa_stubs.h

    r62517 r69119  
     1/* $Id$ */
    12/** @file
    2  *
    33 * Stubs for libasound.
    44 */
     
    2020extern int audioLoadAlsaLib(void);
    2121#endif
     22
  • trunk/src/VBox/Devices/Audio/pulse_mangling.h

    r68039 r69119  
     1/* $Id$ */
    12/** @file
     3 * Mangle libpulse symbols.
    24 *
    3  * Mangle libpulse symbols. This is necessary on hosts which don't
    4  * support the -fvisibility gcc switch.
     5 * This is necessary on hosts which don't support the -fvisibility gcc switch.
    56 */
    67
     
    8687
    8788#endif /* !AUDIO_PULSE_MANGLING_H */
     89
  • trunk/src/VBox/Devices/Audio/pulse_stubs.c

    r68039 r69119  
    1515 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1616 */
     17
    1718#define LOG_GROUP LOG_GROUP_DRV_HOST_AUDIO
    1819#include <iprt/assert.h>
  • trunk/src/VBox/Devices/Audio/pulse_stubs.h

    r67951 r69119  
     1/* $Id$ */
    12/** @file
    2  *
    33 * Stubs for libpulse.
    44 */
     
    2020extern int audioLoadPulseLib(void);
    2121#endif
     22
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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