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

Tips to determine endpoint_id? #9

Closed
thbar opened this issue Nov 6, 2019 · 7 comments · Fixed by #43
Closed

Tips to determine endpoint_id? #9

thbar opened this issue Nov 6, 2019 · 7 comments · Fixed by #43

Comments

@thbar
Copy link

thbar commented Nov 6, 2019

Thanks for Membrane! I'm trying it out to record iPad audio (which is exposed as an input soundcard when connected over a lightning cable to a Mac) and send it to the default soundcard output, as a starter.

I believe I will need to specify a endpoint_id to the source, because the iPad audio is not the default input.

Do you have an easy way to figure out what the ids are? Thank you!

@mat-hek
Copy link
Member

mat-hek commented Nov 7, 2019

Hi @thbar , you're welcome :) Unfortunately I don't know if there is a universal way of recognizing an assignment of device_id (that endpoint_id maps to in PortAudio) to the particular hardware. Moreover, afaik it can differ e.g. depending on order soundcards are connected... Anyway, you can check out http://portaudio.com/docs/v19-doxydocs/querying_devices.html . BTW, maybe it would be good to make it a mix task.

@thbar
Copy link
Author

thbar commented Nov 7, 2019

Thank you! I will work on a PR to expose that as a helper method (& yes a mix task that would display the results is a good idea!).

@mat-hek
Copy link
Member

mat-hek commented Nov 7, 2019

Great! You can check first if this gives you any useful information ;) Also please note we use unifex for the native parts of the framework. If you had any questions we're here to help.

@thbar
Copy link
Author

thbar commented Nov 7, 2019

I've seen that and also discovered bundlex, so this will be a great way to have a first hands-on case for their use. Thanks!

@lawik
Copy link

lawik commented Aug 6, 2020

So there is currently not any convenience functionality in this module to get a list of devices? It would be nice to have that or have a library for some of those common audio-recording tasks in Elixir. Is this something y'all working with Membrane have and could expose?

@mat-hek
Copy link
Member

mat-hek commented Aug 6, 2020

Hi @lawik, unfortunately, we don't have this functionality, but we're open for PRs ;)

@lawik
Copy link

lawik commented Aug 7, 2020

Fair enough. If I end up doing a specific project I might end up needing to do just that :)

@mat-hek mat-hek mentioned this issue Oct 18, 2023
@thbar thbar mentioned this issue Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants