≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Play 2D sound with specific volume
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b]spgardebiter[/b] wrote: Hello, I'm working on a 2D game and I want to implement sound playback in a way, that the volume of the sound depends on the distance of the object that emits the sound. So setting a volume for a sound effect is no actual option for me, as multiple instances of the sound could be played all with different volumes. I'm not looking for 3D playback as well, as this makes it way more complicated than it actually is. Is there no way to play a sound with a specific volume? I know that I can create a pointer to an ISound object for every sound that I play, however then I would have to check every frame if the sound is still playing (not that this is a big issue but I want to be as efficient as possible). So what is the best way of doing this? I hope you guys can help me out. ;) Thanks, S. P. Gardebiter[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact