1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

Moved audio sample definitions to dsp types definitions

This commit is contained in:
f4exb 2017-08-24 15:24:28 +02:00
parent f74e74af12
commit d98d8757b0
14 changed files with 10 additions and 76 deletions

View File

@ -87,12 +87,6 @@ private:
{ }
};
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -143,12 +143,6 @@ private:
{ }
};
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -234,12 +234,6 @@ private:
{ }
};
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -160,12 +160,6 @@ private:
{ }
};
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -164,13 +164,6 @@ private:
{ }
};
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
Real m_Bandwidth;
Real m_LowCutoff;
Real m_volume;

View File

@ -97,12 +97,6 @@ private:
{ }
};
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -54,13 +54,6 @@ public:
FormatNone
};
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
UDPSrc(MessageQueue* uiMessageQueue, UDPSrcGUI* udpSrcGUI, BasebandSampleSink* spectrum);
virtual ~UDPSrc();

View File

@ -243,12 +243,6 @@ private:
//=================================================================
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -281,12 +281,6 @@ private:
//=================================================================
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -329,12 +329,6 @@ private:
//=================================================================
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -266,12 +266,6 @@ private:
//=================================================================
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
enum RateState {
RSInitialFill,
RSRunning

View File

@ -34,7 +34,9 @@ AudioFifo::AudioFifo() :
}
AudioFifo::AudioFifo(uint32_t sampleSize, uint32_t numSamples) :
m_fifo(0)
m_fifo(0),
m_udpSink(0),
m_copyToUDP(false)
{
QMutexLocker mutexLocker(&m_mutex);

View File

@ -51,8 +51,14 @@ struct Sample
FixReal m_real;
FixReal m_imag;
};
struct AudioSample {
qint16 l;
qint16 r;
};
#pragma pack(pop)
typedef std::vector<Sample> SampleVector;
typedef std::vector<AudioSample> AudioVector;
#endif // INCLUDE_DSPTYPES_H

View File

@ -30,6 +30,7 @@
#include "util/syncmessenger.h"
#include "util/messagequeue.h"
#include "dsp/filtermbe.h"
#include "dsp/dsptypes.h"
class AudioFifo;
@ -115,13 +116,6 @@ public slots:
void handleInputMessages();
private:
struct AudioSample {
qint16 l;
qint16 r;
};
typedef std::vector<AudioSample> AudioVector;
void upsample6(short *in, short *out, int nbSamplesIn);
void upsample6(short *in, int nbSamplesIn, unsigned char channels);