* Added a 'bitRate' field in the return for the AudioInfo web method.
	* Added an rdexport(1) utility in 'utils/rdexport/'.
This commit is contained in:
Fred Gleason
2016-04-27 19:46:39 -04:00
parent 20101e168c
commit 687a8c6fc8
14 changed files with 709 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ RDAudioInfo::RDAudioInfo(RDStation *station,RDConfig *config,
conv_format=RDWaveFile::Pcm16;
conv_channels=0;
conv_sample_rate=0;
conv_bit_rate=0;
conv_frames=0;
conv_length=0;
}
@@ -81,6 +82,12 @@ unsigned RDAudioInfo::sampleRate() const
}
unsigned RDAudioInfo::bitRate() const
{
return conv_bit_rate;
}
unsigned RDAudioInfo::frames() const
{
return conv_frames;
@@ -183,6 +190,7 @@ RDAudioInfo::ErrorCode RDAudioInfo::runInfo(const QString &username,
conv_format=(RDWaveFile::Format)ParseInt("format",conv_xml);
conv_channels=ParseInt("channels",conv_xml);
conv_sample_rate=ParseInt("sampleRate",conv_xml);
conv_bit_rate=ParseInt("bitRate",conv_xml);
conv_frames=ParseInt("frames",conv_xml);
conv_length=ParseInt("length",conv_xml);

View File

@@ -40,6 +40,7 @@ class RDAudioInfo : public QObject
RDWaveFile::Format format() const;
unsigned channels() const;
unsigned sampleRate() const;
unsigned bitRate() const;
unsigned frames() const;
unsigned length() const;
void setCartNumber(unsigned cartnum);
@@ -57,6 +58,7 @@ class RDAudioInfo : public QObject
RDWaveFile::Format conv_format;
unsigned conv_channels;
unsigned conv_sample_rate;
unsigned conv_bit_rate;
unsigned conv_frames;
unsigned conv_length;
QString conv_xml;