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

Playing USB device audio stream #64

Open
karterilla opened this issue Jan 4, 2024 · 3 comments
Open

Playing USB device audio stream #64

karterilla opened this issue Jan 4, 2024 · 3 comments

Comments

@karterilla
Copy link

Hello and thank you for your great job.
I was wandering if your library can be used to play a constant audio stream coming from a connected USB device, an FM Radio with 2 channels.
I' trying to "update" an old application I made more than 10 years ago, ie developed on Mac which I know it is not supported (hoping yet) by your lib, but I'm stack in the old way of playback the stream coming from the device which after sometimes get corrupted or crashes the app. Even if it is compiling OK in Xcode 15.
I did use the tools and frameworks available at that time (but mostly swift code beside just the streaming written in C++...)

Thanx

@dimitris-c
Copy link
Owner

I'm not sure of how to achieve this, but you can create a new AudioSource that can read the usb data... it might work.

@karterilla
Copy link
Author

Thank you. I was able to port the lib to macOS, but using it does not works: always getting in logs the yellow scooter "engine already running", twice, and finally the red dot "engine stopped". This just using a minimal stupid program which try to play a single url embedded in the program. Working on this right now.
So I'm miles away to try to route a stream (which actually I do not know the kind of...). Getting and buffering the stream is OK for me, I used in my failing application based on old CoreAudio, but until I do understand why your lib is unable to play an URL or a file in macOS, no way.
Thank you a lot.

@karterilla
Copy link
Author

If you are interested I've developed a real minimal, minimal, basic Macos app that let you play URLs 9yous for example). Just those ones embedded in the program, but making a more functional, similar to your IOS one, should be not too hard. I did use it daily for days, without any issue. It uses the default system output device. Again is a pop menu to choose from, and when started you can scan over the list for other URLs without stopping and starting back.

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