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:
parent
f74e74af12
commit
d98d8757b0
@ -87,12 +87,6 @@ private:
|
||||
{ }
|
||||
};
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -143,12 +143,6 @@ private:
|
||||
{ }
|
||||
};
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -234,12 +234,6 @@ private:
|
||||
{ }
|
||||
};
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -160,12 +160,6 @@ private:
|
||||
{ }
|
||||
};
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -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;
|
||||
|
@ -97,12 +97,6 @@ private:
|
||||
{ }
|
||||
};
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -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();
|
||||
|
||||
|
@ -243,12 +243,6 @@ private:
|
||||
|
||||
//=================================================================
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -281,12 +281,6 @@ private:
|
||||
|
||||
//=================================================================
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -329,12 +329,6 @@ private:
|
||||
|
||||
//=================================================================
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -266,12 +266,6 @@ private:
|
||||
|
||||
//=================================================================
|
||||
|
||||
struct AudioSample {
|
||||
qint16 l;
|
||||
qint16 r;
|
||||
};
|
||||
typedef std::vector<AudioSample> AudioVector;
|
||||
|
||||
enum RateState {
|
||||
RSInitialFill,
|
||||
RSRunning
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user