diff --git a/hw/xbox/xblc.c b/hw/xbox/xblc.c index 90b741556e..eb7dc51d25 100644 --- a/hw/xbox/xblc.c +++ b/hw/xbox/xblc.c @@ -442,6 +442,11 @@ static void usb_xblc_handle_data(USBDevice *dev, USBPacket *p) to_process -= chunk_len; } + // Ensure we fill the entire packet regardless of if we have audio data so we don't + // cause an underrun error. + if (p->actual_length < p->iov.size) + usb_packet_copy(p, (void *)silence, p->iov.size - p->actual_length); + break; case USB_TOKEN_OUT: // Speaker data - get data from usb packet then push to fifo. @@ -456,12 +461,6 @@ static void usb_xblc_handle_data(USBDevice *dev, USBPacket *p) assert(false); break; } - - // Ensure we fill the entire packet regardless of if we have audio data so we don't - // cause an underrun error. - if (p->actual_length < p->iov.size) - usb_packet_copy(p, (void *)silence, p->iov.size - p->actual_length); - } static void usb_xbox_communicator_unrealize(USBDevice *dev) diff --git a/subprojects/cpp-httplib b/subprojects/cpp-httplib new file mode 160000 index 0000000000..0f1b62c2b3 --- /dev/null +++ b/subprojects/cpp-httplib @@ -0,0 +1 @@ +Subproject commit 0f1b62c2b3d0898cbab7aa685c2593303ffdc1a2