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

Fixes culture formatting bug for SoX commands #243

Merged
merged 2 commits into from
Jun 28, 2019
Merged

Conversation

atruskie
Copy link
Member

In some cultures, where a comma is used as the decimal separator. In those cases, when we format commands for SoX the numbers would be separated with commas and the command would be invalid.

The commit fixes that by ensuring we only use the invariant culture when formatting floating point types.

Fixes #242

In some cultures, where a comma is used as the decimal separator. In those cases, when we format commands for SoX the numbers would be separated with commas and the command would be invalid.

The commit fixes that by ensuring we only use the invariant culture when formatting floating point types.

Fices #242
@atruskie atruskie requested a review from peichins June 27, 2019 11:58
break;
case BandPassType.Bandpass:

// bypass filter is centre + width hence numbers are different
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// bandpass filter is ...

@atruskie atruskie merged commit 30eb5bd into master Jun 28, 2019
@atruskie atruskie deleted the i8s-command-bug branch June 28, 2019 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SoX failing sometimes due to culture decimal point differences
2 participants