• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic