| 190 | //----------------------------------------------------------------------------- |
| 191 | |
| 192 | bool DSVoiceStop(PVOICE Voice) |
| 193 | { |
| 194 | #ifdef NO_DIRECT_X |
| 195 | return false; |
| 196 | #else |
| 197 | _ASSERT(Voice->lpDSBvoice); |
| 198 | HRESULT hr = Voice->lpDSBvoice->Stop(); |
| 199 | if(FAILED(hr)) |
| 200 | { |
| 201 | if(g_fh) fprintf(g_fh, "%s: DSStop failed (%08X)\n", Voice->name.c_str(), (uint32_t)hr); |
| 202 | return false; |
| 203 | } |
| 204 | |
| 205 | Voice->bActive = false; |
| 206 | return true; |
| 207 | #endif // NO_DIRECT_X |
| 208 | } |
| 209 | |
| 210 | // Use this to Play() |
| 211 | bool DSZeroVoiceBuffer(PVOICE Voice, uint32_t dwBufferSize) |
no test coverage detected