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