Changeset 56662 in vbox
- Timestamp:
- Jun 26, 2015 4:31:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp
r56516 r56662 323 323 if (mData->m->mAudioController != aAudioController) 324 324 { 325 AudioCodecType_T defaultCodec; 326 325 327 /* 326 328 * which audio hardware type are we supposed to use? … … 328 330 switch (aAudioController) 329 331 { 332 /* codec type needs to match the controller. */ 330 333 case AudioControllerType_AC97: 334 defaultCodec = AudioCodecType_STAC9700; 335 break; 331 336 case AudioControllerType_SB16: 337 defaultCodec = AudioCodecType_SB16; 338 break; 332 339 case AudioControllerType_HDA: 333 { 334 mData->m.backup(); 335 mData->m->mAudioController = aAudioController; 336 alock.release(); 337 AutoWriteLock mlock(mParent COMMA_LOCKVAL_SRC_POS); // mParent is const, needs no locking 338 mParent->i_setModified(Machine::IsModified_AudioAdapter); 340 defaultCodec = AudioCodecType_STAC9221; 339 341 break; 340 }341 342 342 343 default: … … 345 346 rc = E_FAIL; 346 347 } 348 if (rc == S_OK) 349 { 350 mData->m.backup(); 351 mData->m->mAudioController = aAudioController; 352 mData->m->mAudioCodec = defaultCodec; 353 alock.release(); 354 AutoWriteLock mlock(mParent COMMA_LOCKVAL_SRC_POS); // mParent is const, needs no locking 355 mParent->i_setModified(Machine::IsModified_AudioAdapter); 356 } 347 357 } 348 358 … … 370 380 371 381 /* 372 * which audio hardware type are we supposed to use?382 * ensure that the codec type matches the audio controller 373 383 */ 374 384 switch (mData->m->mAudioController)
Note:
See TracChangeset
for help on using the changeset viewer.