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

How to recode audio and print audio device name? #17

Open
jinfeihan57 opened this issue Nov 14, 2023 · 2 comments
Open

How to recode audio and print audio device name? #17

jinfeihan57 opened this issue Nov 14, 2023 · 2 comments

Comments

@jinfeihan57
Copy link

jinfeihan57 commented Nov 14, 2023

I want to recode audio.
but default code can not do it.
I patch this code then I can recode audio. and I print vistamixers info.
image
I don't why I can't print [i.name].
[i.CanPlay] and [i.CanCapture] seems to be opposite.
I need to choose a recording device, how should I do it.

if I print [i.name]
image

@Boomslangnz
Copy link

try i.name.c_str()

for my project i just used

std::wstring myString = vistamixers[i].name.c_str(); and can receieve the device name

@jinfeihan57
Copy link
Author

try i.name.c_str()

for my project i just used

std::wstring myString = vistamixers[i].name.c_str(); and can receieve the device name

not working for me.

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

No branches or pull requests

2 participants