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 operations incomplete #27

Open
dstengle opened this issue Aug 4, 2024 · 7 comments
Open

Audio device operations incomplete #27

dstengle opened this issue Aug 4, 2024 · 7 comments

Comments

@dstengle
Copy link

dstengle commented Aug 4, 2024

I'm trying to get an audio device and the device manager gives me None for the current device. I notice there are a number of methods missing regarding audio devices. Is audio device functionality not currently developed?

@kunitoki
Copy link
Owner

kunitoki commented Aug 4, 2024

Which version are you using ? Current master is based on juce8 and it is not tested much.

Does this work for you ? https://github.com/kunitoki/popsicle/blob/master/examples/audio_device.py

@dstengle
Copy link
Author

dstengle commented Aug 4, 2024

I get this error:

Traceback (most recent call last): File "/home/dstengle/Downloads/audio_device.py", line 4, in <module> from juce_init import START_JUCE_COMPONENT ModuleNotFoundError: No module named 'juce_init'
I'm on 0.9.6 through pypi. Should I downgrade?

@kunitoki
Copy link
Owner

kunitoki commented Aug 5, 2024

juce_init is part of the examples, you need to run from the examples folder

@dstengle
Copy link
Author

dstengle commented Aug 6, 2024

I had figured that out and then forgot. This is what I get:

python audio_device.py no channels

Do I need to set any env variables? I'm on ubuntu 24.04.

@kunitoki
Copy link
Owner

kunitoki commented Aug 7, 2024

It seems like juce is not able to find an Alsa device, not sure why.

@dstengle
Copy link
Author

dstengle commented Aug 7, 2024

You know, I had worked that out before and forgot! I opened my shell in there and I had already run the example:

"no channels"

Do I need to set up any env variables

@dstengle dstengle closed this as completed Aug 7, 2024
@dstengle dstengle reopened this Aug 7, 2024
@kunitoki
Copy link
Owner

kunitoki commented Aug 7, 2024

I don't think so, but i would check if you can open a device with 2 output channels, maybe your soundcard don't allow it (you can only open 1 or 4 for examples) but you should try to get some more info from the AudioDeviceManager

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