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

Audio device settings: Fix name handling #7642

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

glebm
Copy link
Collaborator

@glebm glebm commented Jan 11, 2025

  1. The char pointer returned by SDL is only valid temporarily, keeping it around is not allowed so we copy the string.
  2. Moves the trimming to DiabloUI. It now happens every frame but that's OK here (not performance-sensitive and there is little else happening on that screen).

image

@glebm glebm enabled auto-merge (rebase) January 11, 2025 13:03
@glebm glebm force-pushed the audio-device-name branch from eaebf35 to efc959d Compare January 11, 2025 14:42
@glebm
Copy link
Collaborator Author

glebm commented Jan 11, 2025

Rebased

@AJenbo
Copy link
Member

AJenbo commented Jan 12, 2025

@AJenbo AJenbo marked this pull request as draft January 12, 2025 15:37
auto-merge was automatically disabled January 12, 2025 15:37

Pull request was converted to draft

@glebm glebm force-pushed the audio-device-name branch from efc959d to 11ccdf4 Compare January 12, 2025 21:36
1. The char pointer returned by SDL is only valid temporarily,
   keeping it around is not allowed so we copy the string.
2. Moves the trimming to DiabloUI. It now happens every frame
   but that's OK here (not performance-sensitive and there is
   little else happening on that screen).
@glebm glebm force-pushed the audio-device-name branch from 11ccdf4 to 1db62ab Compare January 13, 2025 18:17
@glebm glebm marked this pull request as ready for review January 13, 2025 18:17
@glebm glebm enabled auto-merge (rebase) January 13, 2025 18:18
@glebm
Copy link
Collaborator Author

glebm commented Jan 13, 2025

Rebased

@glebm glebm merged commit ccbf0fc into diasurgical:master Jan 13, 2025
23 checks passed
@glebm glebm deleted the audio-device-name branch January 13, 2025 21:03
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.

2 participants