| 159 | //----------------------------------------------------------------------------- |
| 160 | |
| 161 | SFXStatus SFXVoice::getStatus() const |
| 162 | { |
| 163 | // Detect when the device has finished playback. Only for |
| 164 | // non-streaming voices. For streaming voices, we rely on |
| 165 | // the buffer to send us a STATUS_AtEnd signal when it is |
| 166 | // done playing. |
| 167 | |
| 168 | if( mStatus == SFXStatusPlaying && |
| 169 | !mBuffer->isStreaming() && |
| 170 | _status() == SFXStatusStopped ) |
| 171 | mStatus = SFXStatusStopped; |
| 172 | |
| 173 | return mStatus; |
| 174 | } |
| 175 | |
| 176 | //----------------------------------------------------------------------------- |
| 177 |
no test coverage detected