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

Various Microphone/Vocals fixes #469

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

RileyTheFox
Copy link
Collaborator

Fixes the ExecutionEngineException: String conversion error: Illegal byte sequence encounted in the input. exception. By default on Windows, BASS will retrieve device names in ANSI, even if they are Unicode names (other platforms always use Unicode). BASS has a config option to use Unicode on Windows so I enabled that.

Changed the device list to use a whitelist of types instead of including all non-loopback devices. The list may not be completely exhaustive yet but it excludes most devices which aren't recording devices.

Fixed the SampleFormat error when trying to initialise a microphone (particularly on Linux). I believe this is caused by Linux/devices on Linux not supporting floating point sample recording. Instead it now uses standard 16-bit samples and does the floating point conversion manually for pitch detection logic

@RileyTheFox RileyTheFox merged commit 1836004 into YARC-Official:dev Jun 14, 2023
@RileyTheFox RileyTheFox deleted the sample-format-fix branch June 20, 2023 23:55
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.

1 participant