forked from PAWPAW-Mirror/lib_xua
Manually apply: [PATCH 07/19] Whitespace only
This commit is contained in:
@@ -145,8 +145,8 @@ void GetADCCounts(unsigned samFreq, int &min, int &mid, int &max);
|
|||||||
it needs to be changed for a different sample rate or number of channels.
|
it needs to be changed for a different sample rate or number of channels.
|
||||||
The amount set here is what determines the latency of the buffering.
|
The amount set here is what determines the latency of the buffering.
|
||||||
*/
|
*/
|
||||||
static void set_prefills(unsigned int sampFreq) {
|
static void set_prefills(unsigned int sampFreq)
|
||||||
int min,mid,max;
|
{
|
||||||
int usb_speed;
|
int usb_speed;
|
||||||
unsigned prefill;
|
unsigned prefill;
|
||||||
int bytes_per_sample;
|
int bytes_per_sample;
|
||||||
@@ -158,7 +158,6 @@ static void set_prefills(unsigned int sampFreq) {
|
|||||||
frame = usb_speed == XUD_SPEED_HS ? 8000 : 1000;
|
frame = usb_speed == XUD_SPEED_HS ? 8000 : 1000;
|
||||||
packet_size = ((((sampFreq+frame-1)/frame))+3);
|
packet_size = ((((sampFreq+frame-1)/frame))+3);
|
||||||
|
|
||||||
|
|
||||||
bytes_per_sample = usb_speed == XUD_SPEED_HS ? 4 : 3;
|
bytes_per_sample = usb_speed == XUD_SPEED_HS ? 4 : 3;
|
||||||
|
|
||||||
GET_SHARED_GLOBAL(num_channels, g_numUsbChanOut);
|
GET_SHARED_GLOBAL(num_channels, g_numUsbChanOut);
|
||||||
@@ -174,7 +173,7 @@ static void set_prefills(unsigned int sampFreq) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef MIDI
|
||||||
static inline void swap(xc_ptr &a, xc_ptr &b)
|
static inline void swap(xc_ptr &a, xc_ptr &b)
|
||||||
{
|
{
|
||||||
xc_ptr tmp;
|
xc_ptr tmp;
|
||||||
@@ -183,6 +182,7 @@ static inline void swap(xc_ptr &a, xc_ptr &b)
|
|||||||
b = tmp;
|
b = tmp;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// shared global midi buffering variables
|
// shared global midi buffering variables
|
||||||
#ifdef MIDI
|
#ifdef MIDI
|
||||||
|
|||||||
Reference in New Issue
Block a user