02-08-2011 11:56 AM
Could someone else please confirm either that they too no longer hear any sound (except key clicks) from the 0.9.3 simulator (just released), or that they do in fact hear sound perfectly well, as with the 0.9.2 simulator?
I've rebuilt my app with the 0.9.3 SDK. Also tried setting the system AudioManager output level directly. Tried using the 0.9.2 SDK with the 0.9.3 simulator. No luck yet. ![]()
02-08-2011 12:40 PM
Yup, my app is broken with 0.9.3
I'm using Sound object and SampleDataEvent - SAMPLE_DATA is never fired...
Jarek
02-08-2011 12:45 PM
Thanks. Yes, I checked and don't get the events sent either. I'll wait a bit to see if I get any more ideas, or if others report anything new, before reporting the issue in the tracker.
02-08-2011 12:47 PM
Are these external sound files or embedded sound files?
two steps forward, one step back.
02-08-2011 12:58 PM
Not sure about imrahil, but my sounds are purely generated... no asset to embed or load, so the problem can't involve anything outside of the sound system (at least, not those things).
02-08-2011 01:05 PM
peter9477 wrote:Not sure about imrahil, but my sounds are purely generated...
Same situation in my app...
It's strange because AudioManager.audioManager - availableOutputs. connectedOutput and getOutputMute returns everything correctly...
02-08-2011 01:51 PM
Can somebody please post a simplest example that would play sound in 0.9.2 and don't in 0.9.3?
02-08-2011 02:00 PM
I hear sound when I run a flash game in the browser app, but I need to turn the volume up to hear it.
02-08-2011 02:26 PM
@elena: Yeah sure, this sample works with 0.9.2 but does not have sound with 0.9.3.
Extremely simple example:
package
{
import flash.display.Sprite;
import flash.events.NetStatusEvent;
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
[SWF(height="600", width="1024", frameRate="30", backgroundColor="#cccccc")]
public class PBVideoTest_Native extends Sprite
{
private var _video:Video;
private var _nc:NetConnection;
private var _ns:NetStream;
public function PBVideoTest_Native()
{
stage.nativeWindow.visible = true;
_video = new Video();
this.addChild( _video );
_nc = new NetConnection();
_nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus );
_nc.connect( null );
}
private function onNetStatus( e:NetStatusEvent ):void
{
switch( e.info.code )
{
case "NetConnection.Connect.Success":
_ns = new NetStream( _nc );
_ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus );
_video.attachNetStream( _ns );
_ns.play("http://www.therossman.org/misc/full-logdriver.flv");
break;
}
}
}
}
02-08-2011 02:29 PM
This is video, I was looking for Sound API example.
Video probably does not play because there are no codecs in simulator.