试一下在传输完成中断的地方修改传输长度
current_speaker->data_size = current_speaker->injection_size;
read_length = current_speaker->packet_length;
#if USB_AUDIO_CONFIG_PLAY_USE_FREQ_44_1_K
if(current_speaker->node.audio_description->frequence == USB_AUDIO_CONFIG_FREQ_44_1_K)
{
if(current_speaker->injection_44_count < 9)
{
current_speaker->injection_44_count++;
}
else
{
current_speaker->injection_44_count = 0;
current_speaker->data_size = current_speaker->alt_buf_half_size;
read_length = current_speaker->packet_length_max_44_1;
}
}
#endif /* USB_AUDIO_CONFIG_PLAY_USE_FREQ_44_1_K*/
试一下在传输完成中断的地方修改传输长度
current_speaker->data_size = current_speaker->injection_size;
read_length = current_speaker->packet_length;
#if USB_AUDIO_CONFIG_PLAY_USE_FREQ_44_1_K
if(current_speaker->node.audio_description->frequence == USB_AUDIO_CONFIG_FREQ_44_1_K)
{
if(current_speaker->injection_44_count < 9)
{
current_speaker->injection_44_count++;
}
else
{
current_speaker->injection_44_count = 0;
current_speaker->data_size = current_speaker->alt_buf_half_size;
read_length = current_speaker->packet_length_max_44_1;
}
}
#endif /* USB_AUDIO_CONFIG_PLAY_USE_FREQ_44_1_K*/
举报