Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Java Audio Clips on Pi

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not really a Java question but I am trying to find someone with experience writing Java for a Pi that plays clips. I have determined that the default mixer (0) does not work so I had to select a different one (1).



Here is how I play clips:

This all works but only for a while. At some point when the app tries to play a clip (which it has before during the same run) I get an error telling me the mixer is not supported. The error is obviously dumb because the mixer worked for a while and only occurs on a Pi. Other *NIX work fine. If I end and restart the application then it will work again for a while. I have verified that it is always using the same mixer before and when it fails. Again this does not seem like a Java problem but rather a Pi problem but I don't know what to do to debug or fix it. Unfortunately there does not seem to be much Java expertise on the Pi forum that can help. TIA.
Staff note (Ron McLeod) :

Related post: Platform Dependent Jar Path Problem

 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic