Changeset 87849 in vbox
- Timestamp:
- Feb 23, 2021 1:27:42 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/VBox/vmm/pdmaudioifs.h (modified) (2 diffs)
-
src/VBox/Devices/Audio/DrvAudio.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r87170 r87849 1201 1201 typedef struct PDMAUDIOSTREAM *PPDMAUDIOSTREAMCTX; 1202 1202 1203 /** No stream warning flags set. */ 1204 #define PDMAUDIOSTREAM_WARN_FLAGS_NONE 0 1205 /** Warned about a disabled stream. */ 1206 #define PDMAUDIOSTREAM_WARN_FLAGS_DISABLED RT_BIT(0) 1207 1203 1208 /** 1204 1209 * An input or output audio stream. … … 1215 1220 /** Number of (re-)tries while re-initializing the stream. */ 1216 1221 uint32_t cTriesReInit; 1222 /** Warnings shown already in the release log. 1223 * See PDMAUDIOSTREAM_WARN_FLAGS_XXX defines. */ 1224 uint32_t fWarningsShown; 1217 1225 /** Stream status flag. */ 1218 1226 PDMAUDIOSTREAMSTS fStatus; -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r87847 r87849 896 896 LogFunc(("[%s]\n", pStream->szName)); 897 897 898 pStream->fStatus = PDMAUDIOSTREAMSTS_FLAGS_INITIALIZED; 898 pStream->fStatus = PDMAUDIOSTREAMSTS_FLAGS_INITIALIZED; 899 pStream->fWarningsShown = PDMAUDIOSTREAM_WARN_FLAGS_NONE; 900 899 901 #ifdef VBOX_WITH_STATISTICS 900 902 /* … … 2800 2802 fEnable ? "enable" : "disable", enmDir == PDMAUDIODIR_IN ? "input" : "output", pStream->szName, rc2)); 2801 2803 } 2804 else 2805 { 2806 /* When (re-)enabling a stream, clear the disabled warning bit again. */ 2807 if (fEnable) 2808 pStream->fWarningsShown &= ~PDMAUDIOSTREAM_WARN_FLAGS_DISABLED; 2809 } 2802 2810 2803 2811 if (RT_SUCCESS(rc)) … … 2953 2961 cbReadable = DrvAudioHlpNanoToBytes(RTTimeNanoTS() - pStream->tsLastReadWrittenNs, 2954 2962 &pStream->Host.Cfg.Props); 2955 Log3Func(("[%s] Backend stream not ready or driver has disabled audio input, returning silence\n", pStream->szName)); 2963 if (!(pStream->fWarningsShown & PDMAUDIOSTREAM_WARN_FLAGS_DISABLED)) 2964 { 2965 LogRel(("Audio: Stream '%s' not ready or driver has disabled audio input, returning silence\n", pStream->szName)); 2966 pStream->fWarningsShown |= PDMAUDIOSTREAM_WARN_FLAGS_DISABLED; 2967 } 2956 2968 } 2957 2969 }
Note:
See TracChangeset
for help on using the changeset viewer.

