android - Cordova Native Audio - Multi audio at same time -


how can play @ same time multi sounds selected check boxes?

for example, lets say, have 5 check boxes , select 3 of them play @ same time.

i trying use cordova native audio plugging implement this.

right now, following docs, have this:

// preload audio resources     window.plugins.nativeaudio.preloadcomplex( 'pewpewpew', 'assets/pewpewpew.mp3', 1, 1, 0, function(msg){     }, function(msg){         console.log( 'error: ' + msg );     });       window.plugins.nativeaudio.preloadcomplex( 'soldier', 'assets/soldier.mp3', 1, 1, 0, function(msg){     }, function(msg){         console.log( 'error: ' + msg );     });       window.plugins.nativeaudio.preloadcomplex( 'effects', 'assets/effects.mp3', 1, 1, 0, function(msg){     }, function(msg){         console.log( 'error: ' + msg );     });  // play     window.plugins.nativeaudio.play( 'pewpewpew' );     window.plugins.nativeaudio.loop( 'soldier' );         window.plugins.nativeaudio.loop( 'effects' ); 

and checkboxes example:

http://play.ionic.io/app/89d16b54285b

who can implement checkbox sound, , start selected sounds @ same time?


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -