OpenBarnyard
 
Loading...
Searching...
No Matches
ASoundManager::SoundEventSortResults Struct Reference

#include <ASoundManager.h>

Public Member Functions

TINT operator() (const SoundEvent &a_rcVal1, const SoundEvent &a_rcVal2) const
 

Detailed Description

Definition at line 133 of file ASoundManager.h.

Member Function Documentation

◆ operator()()

TINT ASoundManager::SoundEventSortResults::operator() ( const SoundEvent & a_rcVal1,
const SoundEvent & a_rcVal2 ) const
inline

Definition at line 135 of file ASoundManager.h.

136 {
137 TFLOAT fStartTime1 = a_rcVal1.fStartTime;
138 TFLOAT fStartTime2 = a_rcVal2.fStartTime;
139
140 if ( fStartTime1 > fStartTime2 )
141 return 1;
142
143 if ( fStartTime1 >= fStartTime2 )
144 return 0;
145
146 return -1;
147 }
float TFLOAT
Definition Typedefs.h:4

The documentation for this struct was generated from the following file: