- Timestamp:
- Jul 31, 2018 11:38:21 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r73408 r73409 1127 1127 return 0; 1128 1128 1129 const float dbBytesPerMs = ((pProps->cBits / 8) * pProps->cChannels * pProps->uHz) / 1000;1129 const float dbBytesPerMs = ((pProps->cBits / 8) * pProps->cChannels * pProps->uHz) / RT_MS_1SEC; 1130 1130 Assert(dbBytesPerMs >= 0.0f); 1131 1131 if (!dbBytesPerMs) /* Prevent division by zero. */ … … 1191 1191 return 0; 1192 1192 1193 return cFrames / (pProps->uHz / 1000 /* ms */);1193 return cFrames / (pProps->uHz / RT_MS_1SEC); 1194 1194 } 1195 1195 … … 1228 1228 return 0; 1229 1229 1230 return float(((pProps->cBits / 8) * pProps->cChannels * pProps->uHz) / 1000) * uMs;1230 return float(((pProps->cBits / 8) * pProps->cChannels * pProps->uHz) / RT_MS_1SEC) * uMs; 1231 1231 } 1232 1232
Note:
See TracChangeset
for help on using the changeset viewer.