Win a copy of Terraform in Action this week in the Cloud 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

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.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic