| 734 | //----------------------------------------------------------------------------- |
| 735 | |
| 736 | SFXSource* SFXSystem::playOnce( SFXTrack* track, |
| 737 | const MatrixF *transform, |
| 738 | const VectorF *velocity, |
| 739 | F32 fadeInTime ) |
| 740 | { |
| 741 | // We sometimes get null profiles... nothing to play without a profile! |
| 742 | if( !track ) |
| 743 | return NULL; |
| 744 | |
| 745 | SFXSource *source = createSource( track, transform, velocity ); |
| 746 | if( source ) |
| 747 | { |
| 748 | mPlayOnceSources.push_back( source ); |
| 749 | source->play( fadeInTime ); |
| 750 | } |
| 751 | |
| 752 | return source; |
| 753 | } |
| 754 | |
| 755 | //----------------------------------------------------------------------------- |
| 756 |
no test coverage detected