asdcplib may be copied only under the terms of the license found at\n\
the top of every file in the asdcplib distribution kit.\n\n\
Specify the -h (help) option for further information about %s\n\n",
asdcplib may be copied only under the terms of the license found at\n\
the top of every file in the asdcplib distribution kit.\n\n\
Specify the -h (help) option for further information about %s\n\n",
- PACKAGE, ASDCP::Version(), PACKAGE);
+ PROGRAM_NAME, ASDCP::Version(), PROGRAM_NAME, PROGRAM_NAME);
\n\
Other Options:\n\
-v - Verbose, show extra detail during run\n\
\n\
NOTES: o There is no option grouping, all options must be distinct arguments.\n\
o All option arguments must be separated from the option by whitespace.\n\
\n\
Other Options:\n\
-v - Verbose, show extra detail during run\n\
\n\
NOTES: o There is no option grouping, all options must be distinct arguments.\n\
o All option arguments must be separated from the option by whitespace.\n\
bool verbose_flag; // true if the verbose option was selected
bool version_flag; // true if the version display option was selected
bool help_flag; // true if the help display option was selected
bool verbose_flag; // true if the verbose option was selected
bool version_flag; // true if the version display option was selected
bool help_flag; // true if the help display option was selected
ui32_t duration; // number of frames to be processed
const char* filename; // filename prefix for files written by the extract mode
CommandOptions(int argc, const char** argv) :
ui32_t duration; // number of frames to be processed
const char* filename; // filename prefix for files written by the extract mode
CommandOptions(int argc, const char** argv) :
- error_flag(true), verbose_flag(false), version_flag(false), help_flag(false),
+ error_flag(true), verbose_flag(false), version_flag(false), help_flag(false), s96_flag(false),
duration(1440), filename(0)
{
for ( int i = 1; i < argc; i++ )
{
duration(1440), filename(0)
{
for ( int i = 1; i < argc; i++ )
{
- ADesc.SampleRate = Rational(24,1);
- ADesc.AudioSamplingRate = ASDCP::SampleRate_48k;
+ ADesc.EditRate = Rational(24,1);
+ ADesc.AudioSamplingRate = Options.s96_flag ? ASDCP::SampleRate_96k : ASDCP::SampleRate_48k;
memset(FrameBuffer.Data(), 0, FrameBuffer.Capacity());
FrameBuffer.Size(FrameBuffer.Capacity());
memset(FrameBuffer.Data(), 0, FrameBuffer.Capacity());
FrameBuffer.Size(FrameBuffer.Capacity());
- fprintf(stderr, "48Khz PCM Audio, %s fps (%u spf)\n", "24",
- PCM::CalcSamplesPerFrame(ADesc));
+ fprintf(stderr, "%s kHz PCM Audio, 24 fps (%u spf)\n",
+ (Options.s96_flag?"96":"48"), PCM::CalcSamplesPerFrame(ADesc));
fputs("AudioDescriptor:\n", stderr);
PCM::AudioDescriptorDump(ADesc);
}
fputs("AudioDescriptor:\n", stderr);
PCM::AudioDescriptorDump(ADesc);
}