@@ -280,7 +280,7 @@ class DirectXDriver extends h3d.impl.Driver {
if( old ) hxd.System.allowTimeout = true;
if( hasDeviceError ) {
- //trace("OnContextLost");
+ Sys.println("----------- OnContextLost ----------");
hasDeviceError = false;
dispose();
reset();
@@ -160,6 +160,15 @@ class Manager {
}
+ public function stopByName( name : String ) {
+ var c = channels;
+ while( c != null ) {
+ var n = c.next;
+ if( c.soundGroup != null && c.soundGroup.name == name ) c.stop();
+ c = n;
+ }
+
/**
Returns iterator with all active instances of a Sound at the call time.
**/