Pixel Perfect Posted August 26, 2012 Share Posted August 26, 2012 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? Quote 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++ Link to comment Share on other sites More sharing options...
Pixel Perfect Posted August 27, 2012 Author Share Posted August 27, 2012 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! Quote 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++ Link to comment Share on other sites More sharing options...
Recommended Posts
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.