Lines 757-769
Link Here
|
757 |
bool SGSoundMgr::is_sample_stopped(SGSoundSample *sample) |
757 |
bool SGSoundMgr::is_sample_stopped(SGSoundSample *sample) |
758 |
{ |
758 |
{ |
759 |
#ifdef ENABLE_SOUND |
759 |
#ifdef ENABLE_SOUND |
760 |
assert(sample->is_valid_source()); |
760 |
if (sample->is_valid_source()){ |
761 |
unsigned int source = sample->get_source(); |
761 |
ALint source = sample->get_source(); |
762 |
int result; |
762 |
ALint result; |
763 |
alGetSourcei( source, AL_SOURCE_STATE, &result ); |
763 |
alGetSourcei(source,AL_SOURCE_STATE,&result); |
764 |
return (result == AL_STOPPED); |
764 |
return (result == AL_STOPPED); |
765 |
#else |
765 |
} |
766 |
return true; |
766 |
return true; |
767 |
#endif |
767 |
#endif |
768 |
} |
768 |
} |
769 |
|
769 |
|