mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Fix compilation warnings and errors
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
#include "audio/audiodeviceinfo.h"
|
||||
#include "util/message.h"
|
||||
|
||||
struct AudioCATSISOSettings {
|
||||
class AudioCATSISOSettings{
|
||||
public:
|
||||
|
||||
class MsgPTT : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
|
||||
@@ -483,7 +483,7 @@ void MetisMISOUDPHandler::processIQBuffer(unsigned char* buffer)
|
||||
{
|
||||
int b = 0;
|
||||
unsigned int r;
|
||||
int sampleI, sampleQ, sampleMic;
|
||||
int sampleI, sampleQ;
|
||||
|
||||
|
||||
if (buffer[b++]==0x7F && buffer[b++]==0x7F && buffer[b++]==0x7F)
|
||||
@@ -622,8 +622,9 @@ void MetisMISOUDPHandler::processIQBuffer(unsigned char* buffer)
|
||||
}
|
||||
}
|
||||
|
||||
sampleMic = (int)((signed char) buffer[b++]) << 8;
|
||||
sampleMic += (int)((unsigned char)buffer[b++]);
|
||||
// sampleMic
|
||||
b+=2;
|
||||
|
||||
m_sampleTxCount++;
|
||||
|
||||
if (m_sampleTxCount >= 63) // 63 samples per 512 byte Tx block
|
||||
|
||||
Reference in New Issue
Block a user