Changeset 89994 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Jul 2, 2021 9:41:02 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp
r89992 r89994 258 258 259 259 /** @todo Use .WAV here? */ 260 PAUDIOTESTOBJ pObj;261 int rc = AudioTestSetObjCreateAndRegister(&pTstEnv->Set, "guest-tone-play.pcm", & pObj);260 AUDIOTESTOBJ Obj; 261 int rc = AudioTestSetObjCreateAndRegister(&pTstEnv->Set, "guest-tone-play.pcm", &Obj); 262 262 AssertRCReturn(rc, rc); 263 263 … … 273 273 RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Playing %RU32 bytes total\n", cbToPlayTotal); 274 274 275 AudioTest SetObjAddMetadataStr(pObj, "stream_to_play_bytes=%RU32\n", cbToPlayTotal);276 AudioTest SetObjAddMetadataStr(pObj, "stream_period_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesPeriod);277 AudioTest SetObjAddMetadataStr(pObj, "stream_buffer_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesBufferSize);278 AudioTest SetObjAddMetadataStr(pObj, "stream_prebuf_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesPreBuffering);275 AudioTestObjAddMetadataStr(Obj, "stream_to_play_bytes=%RU32\n", cbToPlayTotal); 276 AudioTestObjAddMetadataStr(Obj, "stream_period_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesPeriod); 277 AudioTestObjAddMetadataStr(Obj, "stream_buffer_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesBufferSize); 278 AudioTestObjAddMetadataStr(Obj, "stream_prebuf_size_frames=%RU32\n", pStream->Cfg.Backend.cFramesPreBuffering); 279 279 /* Note: This mostly is provided by backend (e.g. PulseAudio / ALSA / ++) and 280 280 * has nothing to do with the device emulation scheduling hint. */ 281 AudioTest SetObjAddMetadataStr(pObj, "device_scheduling_hint_ms=%RU32\n", pStream->Cfg.Device.cMsSchedulingHint);281 AudioTestObjAddMetadataStr(Obj, "device_scheduling_hint_ms=%RU32\n", pStream->Cfg.Device.cMsSchedulingHint); 282 282 283 283 PAUDIOTESTDRVMIXSTREAM pMix = &pStream->Mix; … … 312 312 { 313 313 /* Write stuff to disk before trying to play it. Help analysis later. */ 314 rc = AudioTest SetObjWrite(pObj, abBuf, cbToPlay);314 rc = AudioTestObjWrite(Obj, abBuf, cbToPlay); 315 315 if (RT_SUCCESS(rc)) 316 316 { … … 344 344 rc = VERR_AUDIO_STREAM_NOT_READY; 345 345 346 int rc2 = AudioTest SetObjClose(pObj);346 int rc2 = AudioTestObjClose(Obj); 347 347 if (RT_SUCCESS(rc)) 348 348 rc = rc2; … … 372 372 373 373 /** @todo Use .WAV here? */ 374 PAUDIOTESTOBJ pObj;375 int rc = AudioTestSetObjCreateAndRegister(&pTstEnv->Set, "guest-tone-rec.pcm", & pObj);374 AUDIOTESTOBJ Obj; 375 int rc = AudioTestSetObjCreateAndRegister(&pTstEnv->Set, "guest-tone-rec.pcm", &Obj); 376 376 AssertRCReturn(rc, rc); 377 377 … … 385 385 RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Recording %RU32 bytes total\n", cbToRecTotal); 386 386 387 AudioTest SetObjAddMetadataStr(pObj, "stream_to_record_bytes=%RU32\n", cbToRecTotal);388 AudioTest SetObjAddMetadataStr(pObj, "stream_buffer_size_ms=%RU32\n", pTstEnv->cMsBufferSize);389 AudioTest SetObjAddMetadataStr(pObj, "stream_prebuf_size_ms=%RU32\n", pTstEnv->cMsPreBuffer);387 AudioTestObjAddMetadataStr(Obj, "stream_to_record_bytes=%RU32\n", cbToRecTotal); 388 AudioTestObjAddMetadataStr(Obj, "stream_buffer_size_ms=%RU32\n", pTstEnv->cMsBufferSize); 389 AudioTestObjAddMetadataStr(Obj, "stream_prebuf_size_ms=%RU32\n", pTstEnv->cMsPreBuffer); 390 390 /* Note: This mostly is provided by backend (e.g. PulseAudio / ALSA / ++) and 391 391 * has nothing to do with the device emulation scheduling hint. */ 392 AudioTest SetObjAddMetadataStr(pObj, "device_scheduling_hint_ms=%RU32\n", pTstEnv->cMsSchedulingHint);392 AudioTestObjAddMetadataStr(Obj, "device_scheduling_hint_ms=%RU32\n", pTstEnv->cMsSchedulingHint); 393 393 394 394 uint8_t abSamples[16384]; … … 410 410 if (cbRecorded) 411 411 { 412 rc = AudioTest SetObjWrite(pObj, abSamples, cbRecorded);412 rc = AudioTestObjWrite(Obj, abSamples, cbRecorded); 413 413 if (RT_SUCCESS(rc)) 414 414 { … … 432 432 } 433 433 434 int rc2 = AudioTest SetObjClose(pObj);434 int rc2 = AudioTestObjClose(Obj); 435 435 if (RT_SUCCESS(rc)) 436 436 rc = rc2;
Note:
See TracChangeset
for help on using the changeset viewer.