aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabplussnoop.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-05 10:19:54 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-05 10:19:54 +0200
commita57f21216cf5deb5dc30c1ab181fea91d15b0612 (patch)
treed64e28463c3f786d8c910757c6b9cf9750e01235 /src/dabplussnoop.cpp
parent5a863f88de5e63f1112e8701fa90f58e7de6b608 (diff)
downloadetisnoop-a57f21216cf5deb5dc30c1ab181fea91d15b0612.tar.gz
etisnoop-a57f21216cf5deb5dc30c1ab181fea91d15b0612.tar.bz2
etisnoop-a57f21216cf5deb5dc30c1ab181fea91d15b0612.zip
Fix wav file format on ctrl-C and use more RAII
Diffstat (limited to 'src/dabplussnoop.cpp')
-rw-r--r--src/dabplussnoop.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dabplussnoop.cpp b/src/dabplussnoop.cpp
index d7bc21a..f0badaf 100644
--- a/src/dabplussnoop.cpp
+++ b/src/dabplussnoop.cpp
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2016 Matthias P. Braendli (http://www.opendigitalradio.org)
+ Copyright (C) 2017 Matthias P. Braendli (http://www.opendigitalradio.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -305,18 +305,16 @@ bool DabPlusSnoop::analyse_au(vector<vector<uint8_t> >& aus)
return m_faad_decoder.decode(aus);
}
-void DabPlusSnoop::close()
+DabPlusSnoop::~DabPlusSnoop()
{
m_faad_decoder.close();
}
-void StreamSnoop::close()
+StreamSnoop::~StreamSnoop()
{
if (m_raw_data_stream_fd) {
fclose(m_raw_data_stream_fd);
}
-
- dps.close();
}
void StreamSnoop::push(uint8_t* streamdata, size_t streamsize)