Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for combined wave strength arguments. #59

Merged
merged 3 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading