| 198 | } |
| 199 | |
| 200 | static void arqcb(u32 pointerToARQRequest) |
| 201 | { |
| 202 | if (!soundInited) |
| 203 | { |
| 204 | return; |
| 205 | } |
| 206 | |
| 207 | UNK_STREAM* data = (UNK_STREAM*)((ARQRequest*)pointerToARQRequest)->owner; |
| 208 | |
| 209 | xSTAssetName(data->vinf.aid); |
| 210 | dump_flags(data->vinf.flags); |
| 211 | last_ar = (ARQRequest*)pointerToARQRequest; |
| 212 | if (last_ar->length == 0) |
| 213 | { |
| 214 | return; |
| 215 | } |
| 216 | |
| 217 | //FIXME: Missing redundant branch instruction here |
| 218 | if (data->vinf.voice == NULL) |
| 219 | { |
| 220 | return; |
| 221 | } |
| 222 | |
| 223 | if (data->vinf.flags & 0x100) |
| 224 | { |
| 225 | houston_we_have_a_problem = TRUE; |
| 226 | } |
| 227 | if (data->vinf.flags & 0x1000000) |
| 228 | { |
| 229 | if (data->vinf.flags & 0x200) |
| 230 | { |
| 231 | data->vinf.flags |= 0x1000; |
| 232 | data->vinf.flags &= ~0x200; |
| 233 | } |
| 234 | if (data->vinf.flags & 0x400) |
| 235 | { |
| 236 | data->vinf.flags |= 0x2000; |
| 237 | data->vinf.flags &= ~0x400; |
| 238 | } |
| 239 | |
| 240 | data->x90 += data->xe4; |
| 241 | data->xe4 = 0; |
| 242 | data->source_b = 0; |
| 243 | } |
| 244 | else if (data->vinf.flags & 0x200) |
| 245 | { |
| 246 | data->vinf.flags |= 0x1000; |
| 247 | data->vinf.flags &= ~0x200; |
| 248 | } |
| 249 | else if (data->vinf.flags & 0x400) |
| 250 | { |
| 251 | data->vinf.flags |= 0x2000; |
| 252 | data->vinf.flags &= ~0x400; |
| 253 | } |
| 254 | |
| 255 | if (data->x8c - data->x90 == 0) |
| 256 | { |
| 257 | xSTAssetName(data->vinf.aid); |
nothing calls this directly
no test coverage detected