Changeset 26167 in vbox for trunk/src/VBox/Main/AudioAdapterImpl.cpp
- Timestamp:
- Feb 2, 2010 7:59:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r26156 r26167 205 205 mData.backup(); 206 206 mData->mEnabled = aEnabled; 207 208 alock.release(); 209 AutoWriteLock mlock(mParent COMMA_LOCKVAL_SRC_POS); // mParent is const, needs no locking 210 mParent->setModified(Machine::IsModified_AudioAdapter); 207 211 } 208 212 … … 279 283 mData.backup(); 280 284 mData->mAudioDriver = aAudioDriver; 285 286 alock.release(); 287 AutoWriteLock mlock(mParent COMMA_LOCKVAL_SRC_POS); // mParent is const, needs no locking 288 mParent->setModified(Machine::IsModified_AudioAdapter); 281 289 break; 282 290 } … … 330 338 case AudioControllerType_AC97: 331 339 case AudioControllerType_SB16: 340 { 332 341 mData.backup(); 333 342 mData->mAudioController = aAudioController; 343 344 alock.release(); 345 AutoWriteLock mlock(mParent COMMA_LOCKVAL_SRC_POS); // mParent is const, needs no locking 346 mParent->setModified(Machine::IsModified_AudioAdapter); 334 347 break; 348 } 335 349 336 350 default: 337 {338 351 AssertMsgFailed (("Wrong audio controller type %d\n", 339 352 aAudioController)); 340 353 rc = E_FAIL; 341 }342 354 } 343 355 } … … 414 426 } 415 427 416 bool AudioAdapter::isModified()417 {418 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);419 return mData.isBackedUp();420 }421 422 428 /** 423 429 * @note Locks this object for writing.
Note:
See TracChangeset
for help on using the changeset viewer.