Fix aaudio device name in device.description().name()#1103
Fix aaudio device name in device.description().name()#1103SuperKenVery wants to merge 2 commits intoRustAudio:masterfrom
device.description().name()#1103Conversation
d0d6635 to
400cfdd
Compare
|
I'm not super-clear on the intent, can you elaborate? It seems that currently returning |
|
In #965, the name is changed to product name and device type, on android. Product name is always the device model. You may see the code diff, it's a one line change, and the implementation of name is a few lines above. |
|
If I understand correctly, you are saying that you prefer the behavior of #965? Because I found it weird that a "name" includes a device type and an address. |
|
I didn't see this before working on fixing #969 I have my own patch locally. What's the status here? |
|
@setoelkahfi seems we are doing the same thing, with a little bit different implementation details 😉 |
@SuperKenVery would you mind using my changes instead? |
|
@setoelkahfi My version ensures that cc @roderickvd |
My changes are here. I also filter out the devices based on the direction (output, input). The CI are failing but don't seem to be related to my changes. |
The description() method was calling self.name() which is deprecated. Inline the name-building logic directly to avoid the deprecated call. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: SuperKenVery <SuperKenVery@users.noreply.github.com>

#965 fixed this for
device.name(), which is now a deprecated method. I let.description().name()return the same name.