diff --git a/AudioOutput.h b/AudioOutput.h index f3f635e..b873154 100644 --- a/AudioOutput.h +++ b/AudioOutput.h @@ -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& bytes); + std::vector& bytes); std::string m_error; bool m_zombie; @@ -72,8 +72,8 @@ public: bool write(const SampleVector& samples); private: - int m_fd; - std::vector m_bytebuf; + int m_fd; + std::vector 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 - 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 m_bytebuf; + std::FILE *m_stream; + std::vector m_bytebuf; }; @@ -135,7 +135,7 @@ public: private: unsigned int m_nchannels; struct _snd_pcm * m_pcm; - std::vector m_bytebuf; + std::vector m_bytebuf; }; #endif diff --git a/RtlSdrSource.h b/RtlSdrSource.h index 0dda338..d6bed0f 100644 --- a/RtlSdrSource.h +++ b/RtlSdrSource.h @@ -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();