• 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
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

Audio Clips Mixer Problem

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an application that plays audio clips as alerts. I select the mixer using:

Depending on the OS I may use a different mixer but the one I use does not matter to the problem. Once set 'useMixer' is referenced each time the code plays a clip. In my alert code I select the audio clip to be played thus:

Now for the problem. This code works just fine but only for a while. After playing several clips (I don't know if it is a fixed number or random) the code blows up with an error saying the mixer is not supported. Obviously that is a false error since that mixer worked fine previously. If I stop and relaunch the application the audio clips will once again play for a while.

The conclusion is that the mixer becomes somehow corrupted. The bottom line question is can the mixer be somehow reinitialized programmatically? I've spent hours trying to determine if and when the corruption occurs, if my conclusion is correct, to no avail so some kind of re-initialization is the most practical solution.
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic