aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabplussnoop.hpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-13 18:30:11 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-13 18:30:11 +0200
commitcc4cac79ada4adf808bd09417942a995530c3a69 (patch)
treeb8a1d6d14d4541005c8ad7563a8495792a15dc69 /src/dabplussnoop.hpp
parente3aed1a4a03f6c7d8d2055b02fc53a4ee57e520d (diff)
downloadetisnoop-cc4cac79ada4adf808bd09417942a995530c3a69.tar.gz
etisnoop-cc4cac79ada4adf808bd09417942a995530c3a69.tar.bz2
etisnoop-cc4cac79ada4adf808bd09417942a995530c3a69.zip
Fix subchannel extraction
Diffstat (limited to 'src/dabplussnoop.hpp')
-rw-r--r--src/dabplussnoop.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dabplussnoop.hpp b/src/dabplussnoop.hpp
index b2a2dd3..b62d94d 100644
--- a/src/dabplussnoop.hpp
+++ b/src/dabplussnoop.hpp
@@ -84,8 +84,7 @@ he_aac_super_frame(subchannel_index)
class DabPlusSnoop
{
public:
- void set_subchannel_index(unsigned subchannel_index)
- {
+ void set_subchannel_index(unsigned subchannel_index) {
m_subchannel_index = subchannel_index;
}
@@ -93,8 +92,7 @@ class DabPlusSnoop
m_write_to_wav_file = enable;
}
- void set_index(int index)
- {
+ void set_index(int index) {
m_index = index;
}
@@ -148,12 +146,15 @@ class StreamSnoop
dps.set_subchannel_index(subchannel_index);
}
- void set_index(int index)
- {
+ void set_index(int index) {
m_index = index;
dps.set_index(index);
}
+ int get_index() const {
+ return m_index;
+ }
+
void push(uint8_t* streamdata, size_t streamsize);
audio_statistics_t get_audio_statistics(void) const;