|
|
@ -180,13 +180,17 @@ uint32 CAudioDecoderVorbis::getNextBytes(uint8 *buffer, uint32 minimum, uint32 m
|
|
|
|
nlwarning("ov_read returned OV_HOLE");
|
|
|
|
nlwarning("ov_read returned OV_HOLE");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case OV_EINVAL:
|
|
|
|
case OV_EINVAL:
|
|
|
|
|
|
|
|
_IsMusicEnded = true;
|
|
|
|
nlwarning("ov_read returned OV_EINVAL");
|
|
|
|
nlwarning("ov_read returned OV_EINVAL");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case OV_EBADLINK:
|
|
|
|
case OV_EBADLINK:
|
|
|
|
|
|
|
|
_IsMusicEnded = true;
|
|
|
|
nlwarning("ov_read returned OV_EBADLINK");
|
|
|
|
nlwarning("ov_read returned OV_EBADLINK");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
|
|
|
|
_IsMusicEnded = true;
|
|
|
|
nlwarning("ov_read returned %d", br);
|
|
|
|
nlwarning("ov_read returned %d", br);
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} while (bytes_read < minimum);
|
|
|
|
} while (bytes_read < minimum);
|
|
|
|