VirtualBox

Changeset 73381 in vbox


Ignore:
Timestamp:
Jul 27, 2018 9:16:19 AM (6 years ago)
Author:
vboxsync
Message:

DrvAudioCommon.cpp: Renamed DrvAudioHlp*FileName() -> DrvAudioHlpFileName*().

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioMixer.cpp

    r73380 r73381  
    14141414
    14151415            char szFile[RTPATH_MAX + 1];
    1416             rc2 = DrvAudioHlpGetFileName(szFile, RT_ELEMENTS(szFile), szTemp, szName,
     1416            rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), szTemp, szName,
    14171417                                         0 /* Instance */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    14181418            if (RT_SUCCESS(rc2))
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r73380 r73381  
    27432743                char szFile[RTPATH_MAX + 1];
    27442744
    2745                 int rc2 = DrvAudioHlpGetFileName(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "CaptureNonInterleaved",
     2745                int rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "CaptureNonInterleaved",
    27462746                                                 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    27472747                if (RT_SUCCESS(rc2))
     
    27562756                if (RT_SUCCESS(rc2))
    27572757                {
    2758                     rc2 = DrvAudioHlpGetFileName(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "StreamRead",
     2758                    rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "StreamRead",
    27592759                                                 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    27602760                    if (RT_SUCCESS(rc2))
     
    27782778                char szFile[RTPATH_MAX + 1];
    27792779
    2780                 int rc2 = DrvAudioHlpGetFileName(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "PlayNonInterleaved",
     2780                int rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "PlayNonInterleaved",
    27812781                                                 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    27822782                if (RT_SUCCESS(rc2))
     
    27912791                if (RT_SUCCESS(rc2))
    27922792                {
    2793                     rc2 = DrvAudioHlpGetFileName(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "StreamWrite",
     2793                    rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "StreamWrite",
    27942794                                                 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    27952795                    if (RT_SUCCESS(rc2))
  • trunk/src/VBox/Devices/Audio/DrvAudio.h

    r73380 r73381  
    216216/** @name Audio file (name) helper methods.
    217217 * @{ */
    218 int DrvAudioHlpSanitizeFileName(char *pszPath, size_t cbPath);
    219 int DrvAudioHlpGetFileName(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName, uint32_t uInstance, PDMAUDIOFILETYPE enmType, PDMAUDIOFILENAMEFLAGS fFlags);
     218int DrvAudioHlpFileNameSanitize(char *pszPath, size_t cbPath);
     219int DrvAudioHlpFileNameGet(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName, uint32_t uInstance, PDMAUDIOFILETYPE enmType, PDMAUDIOFILENAMEFLAGS fFlags);
    220220/** @}  */
    221221
  • trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp

    r73380 r73381  
    12151215 * @param   cbPath              Size (in bytes) of path to sanitize.
    12161216 */
    1217 int DrvAudioHlpSanitizeFileName(char *pszPath, size_t cbPath)
     1217int DrvAudioHlpFileNameSanitize(char *pszPath, size_t cbPath)
    12181218{
    12191219    RT_NOREF(cbPath);
     
    12561256 * @param   fFlags              File naming flags.
    12571257 */
    1258 int DrvAudioHlpGetFileName(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName,
     1258int DrvAudioHlpFileNameGet(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName,
    12591259                           uint32_t uInstance, PDMAUDIOFILETYPE enmType, PDMAUDIOFILENAMEFLAGS fFlags)
    12601260{
     
    12921292            }
    12931293
    1294             rc = DrvAudioHlpSanitizeFileName(szFileName, sizeof(szFileName));
     1294            rc = DrvAudioHlpFileNameSanitize(szFileName, sizeof(szFileName));
    12951295            if (RT_FAILURE(rc))
    12961296                break;
  • trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp

    r73380 r73381  
    139139    {
    140140        char szFile[RTPATH_MAX];
    141         rc = DrvAudioHlpGetFileName(szFile, RT_ELEMENTS(szFile), szTemp, "DebugAudioOut",
     141        rc = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), szTemp, "DebugAudioOut",
    142142                                    pDrv->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    143143        if (RT_SUCCESS(rc))
  • trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp

    r73370 r73381  
    164164            char szFile[RTPATH_MAX + 1];
    165165
    166             rc = DrvAudioHlpGetFileName(szFile, RT_ELEMENTS(szFile), szTemp, "VaKit",
     166            rc = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), szTemp, "VaKit",
    167167                                        0 /* Instance */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    168168            if (RT_SUCCESS(rc))
  • trunk/src/VBox/Devices/Audio/HDAStream.cpp

    r73380 r73381  
    8585
    8686        char szPath[RTPATH_MAX + 1];
    87         int rc2 = DrvAudioHlpGetFileName(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile,
     87        int rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile,
    8888                                         0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    8989        AssertRC(rc2);
     
    9696            RTStrPrintf(szFile, sizeof(szFile), "hdaDMAReadSD%RU8", pStream->u8SD);
    9797
    98         rc2 = DrvAudioHlpGetFileName(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile,
     98        rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile,
    9999                                     0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE);
    100100        AssertRC(rc2);
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