Recent changes to 37: Missing audio sink on Windows prevents video from playinghttp://sourceforge.net/p/gsvideo/bugs/37/2012-09-06T15:04:20ZMissing audio sink on Windows prevents video from playing2012-09-06T15:04:20Z2012-09-06T15:04:20ZAnonymoushttp://sourceforge.net/u/userid-None/http://sourceforge.netd9c3340b44e4926c5d26a99f8fd01510b09978f4<div class="markdown_content"><p>If a video with an audio track is loaded, but there is no audio sink on the system, then the video will load, but no frames will ever become available. On my desktop computer, simply unplugging the headphones causes this to happen. This is not really a GSVideo bug, but perhaps a workaround is possible? Setting a FakeSink allows the video to play:</p>
<p>class SilentGSMovie extends GSMovie {<br />
public SilentGSMovie(PApplet parent, String filename) {<br />
super(parent, filename);<br />
gplayer.setAudioSink(new FakeSink("fakesink"));<br />
}<br />
}</p>
<p>But I don't know how to check if some audio sink is available, and only set the FakeSink if not.</p></div>