| 491 | |
| 492 | #if WITH_GRANNY |
| 493 | const char* TextEventTrack::SampleTrack( float time, int loop ) |
| 494 | { |
| 495 | int entryIndex = -1; |
| 496 | for( int entryIdx = 0; entryIdx < m_grannyTrack->EntryCount; entryIdx++ ) |
| 497 | { |
| 498 | if( m_grannyTrack->Entries[entryIdx].TimeStamp > time ) |
| 499 | { |
| 500 | break; |
| 501 | } |
| 502 | entryIndex = entryIdx; |
| 503 | } |
| 504 | // Currently only the last event will be triggered |
| 505 | if( entryIndex >= 0 && ( entryIndex > m_lastIndex || loop > m_lastLoop ) ) |
| 506 | { |
| 507 | m_lastIndex = entryIndex; |
| 508 | m_lastLoop = loop; |
| 509 | return m_grannyTrack->Entries[entryIndex].Text; |
| 510 | } |
| 511 | return nullptr; |
| 512 | } |
| 513 | #endif |
| 514 | |
| 515 | float MorphTrack::SampleTrack( float time, float duration ) const |
no outgoing calls
no test coverage detected