summaryrefslogtreecommitdiff
path: root/gr-audio/lib/oss
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio/lib/oss')
-rw-r--r--gr-audio/lib/oss/oss_sink.cc14
-rw-r--r--gr-audio/lib/oss/oss_sink.h2
-rw-r--r--gr-audio/lib/oss/oss_source.cc14
-rw-r--r--gr-audio/lib/oss/oss_source.h2
4 files changed, 16 insertions, 16 deletions
diff --git a/gr-audio/lib/oss/oss_sink.cc b/gr-audio/lib/oss/oss_sink.cc
index 129e771fd6..75372b0b43 100644
--- a/gr-audio/lib/oss/oss_sink.cc
+++ b/gr-audio/lib/oss/oss_sink.cc
@@ -26,8 +26,8 @@
#include "audio_registry.h"
#include <oss_sink.h>
-#include <gr_io_signature.h>
-#include <gr_prefs.h>
+#include <gnuradio/io_signature.h>
+#include <gnuradio/prefs.h>
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -52,16 +52,16 @@ namespace gr {
static std::string
default_device_name()
{
- return gr_prefs::singleton()->get_string
+ return prefs::singleton()->get_string
("audio_oss", "default_output_device", "/dev/dsp");
}
oss_sink::oss_sink(int sampling_rate,
const std::string device_name,
bool ok_to_block)
- : gr_sync_block("audio_oss_sink",
- gr_make_io_signature(1, 2, sizeof(float)),
- gr_make_io_signature(0, 0, 0)),
+ : sync_block("audio_oss_sink",
+ io_signature::make(1, 2, sizeof(float)),
+ io_signature::make(0, 0, 0)),
d_sampling_rate(sampling_rate),
d_device_name(device_name.empty() ? default_device_name() : device_name),
d_fd(-1), d_buffer(0), d_chunk_size(0)
@@ -74,7 +74,7 @@ namespace gr {
double CHUNK_TIME =
std::max(0.001,
- gr_prefs::singleton()->get_double("audio_oss", "latency", 0.005));
+ prefs::singleton()->get_double("audio_oss", "latency", 0.005));
d_chunk_size = (int)(d_sampling_rate * CHUNK_TIME);
set_output_multiple(d_chunk_size);
diff --git a/gr-audio/lib/oss/oss_sink.h b/gr-audio/lib/oss/oss_sink.h
index 3bb5f4ee1a..e190944857 100644
--- a/gr-audio/lib/oss/oss_sink.h
+++ b/gr-audio/lib/oss/oss_sink.h
@@ -23,7 +23,7 @@
#ifndef INCLUDED_AUDIO_OSS_SINK_H
#define INCLUDED_AUDIO_OSS_SINK_H
-#include <audio/sink.h>
+#include <gnuradio/audio/sink.h>
#include <string>
namespace gr {
diff --git a/gr-audio/lib/oss/oss_source.cc b/gr-audio/lib/oss/oss_source.cc
index 6d6bafceb8..0d27f74fa8 100644
--- a/gr-audio/lib/oss/oss_source.cc
+++ b/gr-audio/lib/oss/oss_source.cc
@@ -26,8 +26,8 @@
#include "audio_registry.h"
#include <oss_source.h>
-#include <gr_io_signature.h>
-#include <gr_prefs.h>
+#include <gnuradio/io_signature.h>
+#include <gnuradio/prefs.h>
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -52,16 +52,16 @@ namespace gr {
static std::string
default_device_name()
{
- return gr_prefs::singleton()->get_string
+ return prefs::singleton()->get_string
("audio_oss", "default_input_device", "/dev/dsp");
}
oss_source::oss_source(int sampling_rate,
const std::string device_name,
bool ok_to_block)
- : gr_sync_block("audio_oss_source",
- gr_make_io_signature(0, 0, 0),
- gr_make_io_signature(1, 2, sizeof(float))),
+ : sync_block("audio_oss_source",
+ io_signature::make(0, 0, 0),
+ io_signature::make(1, 2, sizeof(float))),
d_sampling_rate(sampling_rate),
d_device_name(device_name.empty() ? default_device_name() : device_name),
d_fd(-1), d_buffer(0), d_chunk_size(0)
@@ -73,7 +73,7 @@ namespace gr {
}
double CHUNK_TIME =
- std::max(0.001, gr_prefs::singleton()->get_double("audio_oss", "latency", 0.005));
+ std::max(0.001, prefs::singleton()->get_double("audio_oss", "latency", 0.005));
d_chunk_size = (int)(d_sampling_rate * CHUNK_TIME);
set_output_multiple(d_chunk_size);
diff --git a/gr-audio/lib/oss/oss_source.h b/gr-audio/lib/oss/oss_source.h
index bf5183bd32..6f1df26a11 100644
--- a/gr-audio/lib/oss/oss_source.h
+++ b/gr-audio/lib/oss/oss_source.h
@@ -23,7 +23,7 @@
#ifndef INCLUDED_AUDIO_OSS_SOURCE_H
#define INCLUDED_AUDIO_OSS_SOURCE_H
-#include <audio/source.h>
+#include <gnuradio/audio/source.h>
#include <string>
namespace gr {