forked from PAWPAW-Mirror/lib_xua
Cleaned up some build warnings when NUM_USB_CHAN_OUT = 0
This commit is contained in:
@@ -150,15 +150,15 @@ int g_maxPacketSize = MAX_DEVICE_AUD_PACKET_SIZE_IN_FS;
|
|||||||
#pragma unsafe arrays
|
#pragma unsafe arrays
|
||||||
void handle_audio_request(chanend c_mix_out)
|
void handle_audio_request(chanend c_mix_out)
|
||||||
{
|
{
|
||||||
int outSamps;
|
|
||||||
int space_left;
|
int space_left;
|
||||||
|
|
||||||
/* Input word that triggered interrupt and handshake back */
|
/* Input word that triggered interrupt and handshake back */
|
||||||
unsigned underflowSample = inuint(c_mix_out);
|
unsigned underflowSample = inuint(c_mix_out);
|
||||||
|
|
||||||
#if (NUM_USB_CHAN_OUT == 0)
|
#if (NUM_USB_CHAN_OUT == 0)
|
||||||
outuint(c_mix_out, 0);
|
outuint(c_mix_out, underflowSample);
|
||||||
#else
|
#else
|
||||||
|
int outSamps;
|
||||||
if(outUnderflow)
|
if(outUnderflow)
|
||||||
{
|
{
|
||||||
#pragma xta endpoint "out_underflow"
|
#pragma xta endpoint "out_underflow"
|
||||||
|
|||||||
@@ -180,7 +180,9 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
|
|||||||
unsigned expected_fb = 0;
|
unsigned expected_fb = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (NUM_USB_CHAN_OUT > 0)
|
||||||
xc_ptr aud_from_host_buffer = 0;
|
xc_ptr aud_from_host_buffer = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MIDI
|
#ifdef MIDI
|
||||||
xc_ptr midi_from_host_buffer = array_to_xc_ptr(g_midi_from_host_buffer);
|
xc_ptr midi_from_host_buffer = array_to_xc_ptr(g_midi_from_host_buffer);
|
||||||
|
|||||||
Reference in New Issue
Block a user