Fix incorrect use of uint8_t, FILE, etc. outside std namespace.
This commit is contained in:
parent
ddcb6a8500
commit
cfc5e07db6
|
@ -45,7 +45,7 @@ protected:
|
|||
|
||||
/** Encode a list of samples as signed 16-bit little-endian integers. */
|
||||
static void samplesToInt16(const SampleVector& samples,
|
||||
std::vector<uint8_t>& bytes);
|
||||
std::vector<std::uint8_t>& bytes);
|
||||
|
||||
std::string m_error;
|
||||
bool m_zombie;
|
||||
|
@ -72,8 +72,8 @@ public:
|
|||
bool write(const SampleVector& samples);
|
||||
|
||||
private:
|
||||
int m_fd;
|
||||
std::vector<uint8_t> m_bytebuf;
|
||||
int m_fd;
|
||||
std::vector<std::uint8_t> m_bytebuf;
|
||||
};
|
||||
|
||||
|
||||
|
@ -101,15 +101,15 @@ private:
|
|||
/** (Re-)Write .WAV header. */
|
||||
bool write_header(unsigned int nsamples);
|
||||
|
||||
static void encode_chunk_id(uint8_t * ptr, const char * chunkname);
|
||||
static void encode_chunk_id(std::uint8_t * ptr, const char * chunkname);
|
||||
|
||||
template <typename T>
|
||||
static void set_value(uint8_t * ptr, T value);
|
||||
static void set_value(std::uint8_t * ptr, T value);
|
||||
|
||||
const unsigned numberOfChannels;
|
||||
const unsigned sampleRate;
|
||||
FILE *m_stream;
|
||||
std::vector<uint8_t> m_bytebuf;
|
||||
std::FILE *m_stream;
|
||||
std::vector<std::uint8_t> m_bytebuf;
|
||||
};
|
||||
|
||||
|
||||
|
@ -135,7 +135,7 @@ public:
|
|||
private:
|
||||
unsigned int m_nchannels;
|
||||
struct _snd_pcm * m_pcm;
|
||||
std::vector<uint8_t> m_bytebuf;
|
||||
std::vector<std::uint8_t> m_bytebuf;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -30,15 +30,17 @@ public:
|
|||
*
|
||||
* Return true for success, false if an error occurred.
|
||||
*/
|
||||
bool configure(uint32_t sample_rate, uint32_t frequency, int tuner_gain,
|
||||
bool configure(std::uint32_t sample_rate,
|
||||
std::uint32_t frequency,
|
||||
int tuner_gain,
|
||||
int block_length=default_block_length,
|
||||
bool agcmode=false);
|
||||
|
||||
/** Return current sample frequency in Hz. */
|
||||
uint32_t get_sample_rate();
|
||||
std::uint32_t get_sample_rate();
|
||||
|
||||
/** Return current center frequency in Hz. */
|
||||
uint32_t get_frequency();
|
||||
std::uint32_t get_frequency();
|
||||
|
||||
/** Return current tuner gain in dB. */
|
||||
double get_tuner_gain();
|
||||
|
|
Loading…
Reference in New Issue