![]() ![]() I've installed ALSA and the JDK 1.4.2 to takeĪdvantage of the ALSA support. Which soundcard driversĬan be used by Java Sound? 5.2. "Direct Audio Device" mixers are available, too? 5. "Java Sound Audio Engine" in the JDK 1.5.0 though the What formats are supported by "Direct Audio Device"įormats? 4.9. Why can I record fromĭifferent soundcards, but not play back to them? 4.6. Can I use multiple soundcards at the same time? 4.5. How can I redirect sound output toĪ phone / modem device? 4.4. Why is it not possible to use large buffers for aĭataLine with 1.5.0? 4. Why does a line have the default buffer size though a Why is there no sample rate control in 1.5.0? 3. Why does obtaining a gainĬontrol work with 1.4.2, but not with 1.5.0? 2.5. Why do mono lines from a "Direct Audio Device" have no What is the difference between aĬontrol? Which one should I use? 2.3. Instances I get when using the "Direct Audio Device" (ALSA on Why are there failures,Ĭlicks and other random effects if a clip is played Why does theįrame/microsecond position not jump back to zero when aĬlip is looped? 1.4.5. Why do I get "LineUnavailableException: No Free How can I control the volume when recording with a Why do I get a LineUnavailableException: "Requestedįormat incompatible with already established deviceįormat"? 1.3.5. Why is in not possible to open more than one Specific source (microphone or line-in)? 1.3.2. ![]() Why is playback distorted, tooįast or too slow with the JDK 1.5.0 beta, but not withĮarlier versions of the JDK? 1.3. Notifying applications of an underrun/overrunĬondition? 1.1.14. ![]() What is the differenceĭataLine.isRunning()? 1.1.12. Why does DataLine.getLevel()Īlways return -1? 1.1.11. Though it's actually the other way round? 1.1.9. With the "Direct Audio Devices" mixers on Linux? 1.1.8. Why doesn't simultaneous recording and playback workĪt all with the Sun JDK 1.3/1.4 on GNU/Linux? 1.1.6. Work when first opening the playback line Why does simultaneous recording and playback only Why does it fail to open any line with 16 kHz sampleįormat? 1.1.4. How can I be notified when data is available for I’m happy to walk through things with people here for my own benefit and for the sake of anyone else that experiences the same problem.Audio Programming 1. Since I’m using docker, it’s very easy for me to retry this process. I was unable to get audio working until I found the blurb about running as root in the docker hub documentation.ĭo you have a step in mind that I might have missed in the documentation? I would like to have my setup as close as possible to the standard recommendation, without the container using root by default. I re-did the user/group parameters in the docker run command (should be equivalent to my compose file) and host config multiple times, thinking I must have missed a step. All of the posts I found were not working with docker, but I still tried treating this as a permissions problem. I did stumble across errors different from what I posted, which led me to posts in this community about permissions errors. I ran it manually for a while and then switched to compose.Īudio playback through the rule didn’t work. I still had the option of starting the container manually, or using compose. I never figured out why, and it didn’t seem important enough at the time. I experienced two problems when using only the documentation at (before I tried the compose config example on docker hub). It includes a link and recommendation to refer to the documentation on docker hub as well. I did use the official openhab documentation. "/home/pi/openhab/volumes/addons:/openhab/addons" "/home/pi/openhab/volumes/userdata:/openhab/userdata" "/home/pi/openhab/volumes/conf:/openhab/conf" Here is my docker-compose file: version: '3' I couldn’t get the docker container to run as openhab with the openhab group for some reason, so I found an option to run as root in the documentation for the openhab docker image. Openhab runs under root in my docker container. I am able to play the same sound file from the command line on the pi and from the command line if I go into the docker container itself (using docker exec -it container_id /bin/bash). Whenever the rule is executed, I see this error in my logs: 22:16:54.768 - No line found: No line matching interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, 22050.0 frames/second, little-endian is supported. I have created a rule to play a sound when my contact sensor changes: rule "rule test"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |