Changeset 73381 in vbox
- Timestamp:
- Jul 27, 2018 9:16:19 AM (6 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r73380 r73381 1414 1414 1415 1415 char szFile[RTPATH_MAX + 1]; 1416 rc2 = DrvAudioHlp GetFileName(szFile, RT_ELEMENTS(szFile), szTemp, szName,1416 rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), szTemp, szName, 1417 1417 0 /* Instance */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 1418 1418 if (RT_SUCCESS(rc2)) -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r73380 r73381 2743 2743 char szFile[RTPATH_MAX + 1]; 2744 2744 2745 int rc2 = DrvAudioHlp GetFileName(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "CaptureNonInterleaved",2745 int rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "CaptureNonInterleaved", 2746 2746 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 2747 2747 if (RT_SUCCESS(rc2)) … … 2756 2756 if (RT_SUCCESS(rc2)) 2757 2757 { 2758 rc2 = DrvAudioHlp GetFileName(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "StreamRead",2758 rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->In.Cfg.Dbg.szPathOut, "StreamRead", 2759 2759 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 2760 2760 if (RT_SUCCESS(rc2)) … … 2778 2778 char szFile[RTPATH_MAX + 1]; 2779 2779 2780 int rc2 = DrvAudioHlp GetFileName(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "PlayNonInterleaved",2780 int rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "PlayNonInterleaved", 2781 2781 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 2782 2782 if (RT_SUCCESS(rc2)) … … 2791 2791 if (RT_SUCCESS(rc2)) 2792 2792 { 2793 rc2 = DrvAudioHlp GetFileName(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "StreamWrite",2793 rc2 = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), pThis->Out.Cfg.Dbg.szPathOut, "StreamWrite", 2794 2794 pThis->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 2795 2795 if (RT_SUCCESS(rc2)) -
trunk/src/VBox/Devices/Audio/DrvAudio.h
r73380 r73381 216 216 /** @name Audio file (name) helper methods. 217 217 * @{ */ 218 int DrvAudioHlp SanitizeFileName(char *pszPath, size_t cbPath);219 int DrvAudioHlp GetFileName(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName, uint32_t uInstance, PDMAUDIOFILETYPE enmType, PDMAUDIOFILENAMEFLAGS fFlags);218 int DrvAudioHlpFileNameSanitize(char *pszPath, size_t cbPath); 219 int DrvAudioHlpFileNameGet(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName, uint32_t uInstance, PDMAUDIOFILETYPE enmType, PDMAUDIOFILENAMEFLAGS fFlags); 220 220 /** @} */ 221 221 -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r73380 r73381 1215 1215 * @param cbPath Size (in bytes) of path to sanitize. 1216 1216 */ 1217 int DrvAudioHlp SanitizeFileName(char *pszPath, size_t cbPath)1217 int DrvAudioHlpFileNameSanitize(char *pszPath, size_t cbPath) 1218 1218 { 1219 1219 RT_NOREF(cbPath); … … 1256 1256 * @param fFlags File naming flags. 1257 1257 */ 1258 int DrvAudioHlp GetFileName(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName,1258 int DrvAudioHlpFileNameGet(char *pszFile, size_t cchFile, const char *pszPath, const char *pszName, 1259 1259 uint32_t uInstance, PDMAUDIOFILETYPE enmType, PDMAUDIOFILENAMEFLAGS fFlags) 1260 1260 { … … 1292 1292 } 1293 1293 1294 rc = DrvAudioHlp SanitizeFileName(szFileName, sizeof(szFileName));1294 rc = DrvAudioHlpFileNameSanitize(szFileName, sizeof(szFileName)); 1295 1295 if (RT_FAILURE(rc)) 1296 1296 break; -
trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp
r73380 r73381 139 139 { 140 140 char szFile[RTPATH_MAX]; 141 rc = DrvAudioHlp GetFileName(szFile, RT_ELEMENTS(szFile), szTemp, "DebugAudioOut",141 rc = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), szTemp, "DebugAudioOut", 142 142 pDrv->pDrvIns->iInstance, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 143 143 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp
r73370 r73381 164 164 char szFile[RTPATH_MAX + 1]; 165 165 166 rc = DrvAudioHlp GetFileName(szFile, RT_ELEMENTS(szFile), szTemp, "VaKit",166 rc = DrvAudioHlpFileNameGet(szFile, RT_ELEMENTS(szFile), szTemp, "VaKit", 167 167 0 /* Instance */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 168 168 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Devices/Audio/HDAStream.cpp
r73380 r73381 85 85 86 86 char szPath[RTPATH_MAX + 1]; 87 int rc2 = DrvAudioHlp GetFileName(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile,87 int rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile, 88 88 0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 89 89 AssertRC(rc2); … … 96 96 RTStrPrintf(szFile, sizeof(szFile), "hdaDMAReadSD%RU8", pStream->u8SD); 97 97 98 rc2 = DrvAudioHlp GetFileName(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile,98 rc2 = DrvAudioHlpFileNameGet(szPath, sizeof(szPath), pThis->Dbg.szOutPath, szFile, 99 99 0 /* uInst */, PDMAUDIOFILETYPE_WAV, PDMAUDIOFILENAME_FLAG_NONE); 100 100 AssertRC(rc2);
Note:
See TracChangeset
for help on using the changeset viewer.