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

In-Game: audio_get_recorder_count() does not count any devices which contain non-Latin characters in their name #5124

Closed
gm-bug-reporter bot opened this issue Mar 26, 2024 · 2 comments
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@gm-bug-reporter
Copy link

Description

It will always return 0 when device name (in windows) contains non-Latin characters,which is default in non-latin windows system.
It means any game using this function will not work properly on the player's computer in these areas.
And if change the name of mic device to full EN letters,it will return correct number.

This bug report appeared in community many times,I think it dose not matter which runtime is in using.

See the pic in attach files.

Steps To Reproduce

just try change the name of mic device to some non-Latin characters.like ”麦克风“

Which version of GameMaker are you reporting this issue for?

IDE v2024.2.0.132 Runtime v2024.2.0.163

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

db9ed480-3dbc-4492-8d9a-34adb0109b88

@gm-bug-reporter gm-bug-reporter bot added project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes labels Mar 26, 2024
@stuckie stuckie added this to the 2024.4 milestone Mar 27, 2024
@toby-yoyo
Copy link

Fixed an issue where the string conversion method used to decode device names was proving unreliable with certain character sets.

To test:

  • Go to Windows sound settings (Settings -> System -> Sound).
  • Open the page for your device.
  • Rename it to: マイクロフォン
  • Open and run this project, targeting Windows: _input.zip
  • You should see that the input device is displayed as an available device, as below:

image

@SamTHodson
Copy link

Verified fixed in IDE v2024.400.0.534 Runtime v2024.400.0.553

@SamTHodson SamTHodson changed the title audio_get_recorder_count dose not work correctly in UTF-8 system In-Game: 'audio_get_recorder_count' does not correctly return devices containing non-Latin characters in their names Apr 9, 2024
@YYDan YYDan changed the title In-Game: 'audio_get_recorder_count' does not correctly return devices containing non-Latin characters in their names In-Game: audio_get_recorder_count() does not count any devices which contain non-Latin characters in their name Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Verified
Development

No branches or pull requests

3 participants