| 324 | } |
| 325 | |
| 326 | void VSoundEffectNetEvent::process( NetConnection *pConnection ) |
| 327 | { |
| 328 | // Valid? |
| 329 | if ( !mProfile ) |
| 330 | { |
| 331 | return; |
| 332 | } |
| 333 | |
| 334 | SFXSound *source = NULL; |
| 335 | if ( mIs3D ) |
| 336 | { |
| 337 | // Play 3D Sound. |
| 338 | source = ( SFXSound* )SFX->playOnce( mProfile, &mTransform ); |
| 339 | } |
| 340 | else |
| 341 | { |
| 342 | // Play 2D Sound. |
| 343 | source = ( SFXSound* )SFX->playOnce( mProfile ); |
| 344 | } |
| 345 | |
| 346 | if ( source ) |
| 347 | { |
| 348 | // Set Position. |
| 349 | source->setPosition( mPosition ); |
| 350 | |
| 351 | // Set Pitch. |
| 352 | source->setPitch( mPitch ); |
| 353 | } |
| 354 | } |
nothing calls this directly
no test coverage detected