Skip to content

Commit

Permalink
osmo: Implement getStreamFormats() and getNativeStreamFormat()
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofquality committed Oct 24, 2015
1 parent 4309661 commit d482ed0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions GrOsmoSDRInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ class GrOsmoSDRInterface : public SoapySDR::Device
/*******************************************************************
* Stream support
******************************************************************/
std::vector<std::string> getStreamFormats(const int, const size_t) const
{
std::vector<std::string> formats;
formats.push_back("CF32");
return formats;
}

std::string getNativeStreamFormat(const int, const size_t, double &fullScale) const
{
fullScale = 1.0;
return "CF32";
}

SoapySDR::Stream *setupStream(const int dir, const std::string &format, const std::vector<size_t> &, const SoapySDR::Kwargs &)
{
if (format != "CF32") throw std::runtime_error("GrOsmoSDRStreamer only supports format CF32");
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
soapyosmo (0.2.1) unstable; urgency=low

* Implement getStreamFormats() for SoapySDR v0.4
* Implement getNativeStreamFormat() for SoapySDR v0.4

-- Josh Blum <josh@pothosware.com> Fri, 23 Oct 2015 17:49:43 -0700

soapyosmo (0.2.0) unstable; urgency=low

* Added airspy suppport to debian packaging
Expand Down

0 comments on commit d482ed0

Please sign in to comment.