• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
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.
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic