Jump to content

Recommended Posts

Posted

Is there anyway I can stop a sound playing when using EmitSound in C because unlike Lua and BMax it doesn't return a soundSource?

 

I want the source tied to a moving entity created at run time so it makes sence to use EmitSound but I need to be able to have it loop untill I choose to stop it.

 

How does it even get freed? Does this only occur when the entity it's attached to is freed?

 

 

 

 

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Posted

Ok, I just created a source and reassigned it's position every frame. Simple enough workaround but I still wonder if I'm missing something here!

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...