OSX crash-on-exit fix, File menu tidying, Confirm bookmark reset

This commit is contained in:
Charles J. Cliffe
2018-01-14 18:56:30 -05:00
parent 4c6d7ab4d7
commit 7baaca1216
5 changed files with 80 additions and 42 deletions
+19 -2
View File
@@ -21,15 +21,32 @@ public:
int channels;
float peak;
int type;
bool is_squelch_active = false;
bool is_squelch_active;
std::vector<float> data;
AudioThreadInput() :
frequency(0), inputRate(0), sampleRate(0), channels(0), peak(0), type(0) {
frequency(0), inputRate(0), sampleRate(0), channels(0), peak(0), type(0), is_squelch_active(false) {
}
AudioThreadInput(AudioThreadInput *copyFrom) {
copy(copyFrom);
}
void copy(AudioThreadInput *copyFrom) {
frequency = copyFrom->frequency;
inputRate = copyFrom->inputRate;
sampleRate = copyFrom->sampleRate;
channels = copyFrom->channels;
peak = copyFrom->peak;
type = copyFrom->type;
is_squelch_active = copyFrom->is_squelch_active;
data.assign(copyFrom->data.begin(), copyFrom->data.end());
}
virtual ~AudioThreadInput() {
}