No sound Windows cpp?


import openfl.display.Sprite;

class Main extends Sprite 
    public function new () 
        super ();
        var req = new URLRequest( "crash.ogg" );
	var s = new Sound(req);;


Does Assets.getSound work? (like openfl create PiratePig uses)

I can confirm that it does.

My particular app does require loading them at runtime unfortunately however.

Thanks a lot for you help.

Try using Sound.fromFile ("path/to/file.ogg");, I think that should work

Creating a new Sound (urlRequest); is an oversight, probably because we do not supporting streaming network sound right now. We’ll try and get this handled at least for local resources :slight_smile:

Boom, we have music !

Thanks once again for all your efforts.

Thanks again for bringing this up! new Sound (urlRequest) is now working here with the latest Lime and OpenFL commits