Skip to content

Commit

Permalink
Add support for combined wave strength arguments. (#59)
Browse files Browse the repository at this point in the history
Add support for swtiching combined waves from command line
  • Loading branch information
acrouzet authored Oct 24, 2024
1 parent 3baf966 commit ff85358
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/en/sidplayfp.pod
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ Ranges from 0.0 (light) to 1.0 (dark), the default
value is 0.5. If set to auto it will choose a
predefined value for 6581 depending on the tune author.

=item B<-cw>I<< <w|a|s> >>

Set the strength (width) of combined waveforms.
'w' for weak (thin) waves, 'a' for average waves,
and 's' for strong (wide) waves.

=item B<--noaudio>

Run without an audio output device.
Expand Down
14 changes: 14 additions & 0 deletions src/args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,20 @@ int ConsolePlayer::args(int argc, const char *argv[])
m_frange = atof(&argv[i][9]);
}
}
#endif
#ifdef FEAT_CW_STRENGTH
else if (std::strcmp (&argv[i][1], "cww") == 0)
{
m_combinedWaveformsStrength = SidConfig::WEAK;
}
else if (std::strcmp (&argv[i][1], "cwa") == 0)
{
m_combinedWaveformsStrength = SidConfig::AVERAGE;
}
else if (std::strcmp (&argv[i][1], "cws") == 0)
{
m_combinedWaveformsStrength = SidConfig::STRONG;
}
#endif
// File format conversions
else if (argv[i][1] == 'w')
Expand Down

0 comments on commit ff85358

Please sign in to comment.