Skip to content

Commit

Permalink
port change over from PinMAME
Browse files Browse the repository at this point in the history
  • Loading branch information
toxieainc committed Jan 24, 2024
1 parent cc1b66f commit 676ebcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/altsound_csv_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ bool AltsoundCsvParser::parse(std::vector<AltsoundSampleInfo>& samples_out)
// DUCK
if (std::getline(ss, field, ',')) {
float val = std::stof(trim(field));
entry.ducking = val < 0.0f ? -1.0f : val > 100.0f ? 1.0f : val / 100.0f;
entry.ducking = entry.channel == 0 ? 100.0f : val < 0.0f ? -1.0f : val > 100.0f ? 1.0f : val / 100.0f;
}
else {
ALT_ERROR(0, "Failed to parse sample DUCK value");
Expand Down

0 comments on commit 676ebcd

Please sign in to comment.