2022-04-21 Fred Gleason <fredg@paravelsystems.com>

* Fixed bug in the RDCatch subsystem that caused audio format
	parameters to be confounded between uploaded and audio store
	files.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-04-21 13:19:24 -04:00
parent 1b0d3dc9fd
commit d44e932fe3
12 changed files with 80 additions and 96 deletions

View File

@@ -145,15 +145,15 @@ void RDDeck::setDefaultMonitorOn(bool state) const
}
RDSettings::Format RDDeck::defaultFormat() const
RDCae::AudioCoding RDDeck::defaultFormat() const
{
return (RDSettings::Format)GetIntValue("DEFAULT_FORMAT");
return (RDCae::AudioCoding)GetIntValue("DEFAULT_FORMAT");
}
void RDDeck::setDefaultFormat(RDSettings::Format format) const
void RDDeck::setDefaultFormat(RDCae::AudioCoding coding) const
{
SetRow("DEFAULT_FORMAT",(int)format);
SetRow("DEFAULT_FORMAT",(int)coding);
}

View File

@@ -24,6 +24,7 @@
#include <qsqldatabase.h>
#include <qtimer.h>
#include <rdcae.h>
#include <rdsettings.h>
class RDDeck
@@ -44,8 +45,8 @@ class RDDeck
void setMonitorPortNumber(int port) const;
bool defaultMonitorOn() const;
void setDefaultMonitorOn(bool state) const;
RDSettings::Format defaultFormat() const;
void setDefaultFormat(RDSettings::Format format) const;
RDCae::AudioCoding defaultFormat() const;
void setDefaultFormat(RDCae::AudioCoding coding) const;
int defaultChannels() const;
void setDefaultChannels(int chan) const;
int defaultBitrate() const;

View File

@@ -2,7 +2,7 @@
//
// Edit Audio Export Settings
//
// (C) Copyright 2002-2021\2 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as