2019-05-29 23:22:23

Sorry for the double posting, you could try creating apps that use the same formula or the equivalent  in python and BGT and see if you get the same output.  If not, then I will go over the formula again and compare the parentheses, as that  is what could cause the issue

2019-05-31 17:16:36

Hello! I Figured how to fix this. Aparrantly i forgot this since I wasn't doing the following for a while.
Actually you have to pass a theta to update_listener_3d and 2d not degrees.
I hope if anyone have this problem, read this and don't be confused like me, for days. I was actually losing hope

---
Co-founder of Sonorous Arts.
Check out Sonorous Arts on github: https://github.com/sonorous-arts/
my Discord: kianoosh.shakeri2#2988

2019-05-31 17:29:13

Can you do me a favor and explain to me the difference between the two? I understand the concept of degrees, what I do not understand is what is theta.

2019-05-31 19:38:01

radians. (degrees*pi)/180.0

---
Co-founder of Sonorous Arts.
Check out Sonorous Arts on github: https://github.com/sonorous-arts/
my Discord: kianoosh.shakeri2#2988

2019-05-31 21:30:55

I don’t mean the calculation, although that is certainly useful. I mean, what does it do. Does it exist in real world?  Degrees can tell you which way something is facing, but what does theta tell you?

2019-06-01 08:52:00

Sorry, alittle bit of topic, but i can't play mp3 files with this awesome sound_pool...

best regards
never give up on what ever you are doing.

2019-06-01 17:11:20 (edited by kianoosh 2019-06-01 17:14:53)

Yeah it really does exist. We might have named it wrong as "theta". It is called calculating the radians. There's the formula for it in python's standard math library. math.radians(degrees)
Radians of the degrees is needed to be able to move on object based on a direction. Since sound pool actually moves the source around you based on your direction, You need to pass the radians of your direction instead of your direction which is in degree.
It is completely normal. No worries.

---
Co-founder of Sonorous Arts.
Check out Sonorous Arts on github: https://github.com/sonorous-arts/
my Discord: kianoosh.shakeri2#2988

2019-06-01 20:23:42

Right, but what is theta conceptually, not mathematically? As in, degrees tell you what way you're facing, what does theta tell you, though? How is it related to sound and it's positioning?

2019-06-02 15:20:56

the lower cased θ is used for a plane angle in geometry.
Theta is needed to position the sound because the formula that it uses should have radians instead of degrees. So I say, a wrong naming of a function leads you to this confusion. The function calculate_theta which can be found in sam's rotation package should be named calculate_radians.

---
Co-founder of Sonorous Arts.
Check out Sonorous Arts on github: https://github.com/sonorous-arts/
my Discord: kianoosh.shakeri2#2988

2019-06-03 21:10:29

hi @amerikranian
WHat license are your code licensed under (if any) ?
Really want to include it in a bigger, open source project, but idk what the license is for your code.

If you like what I do, Feel free to check me out on GitHub, or follow me on Twitter

2019-06-04 06:21:15

It is not licensed. Really, do whatever you want with it.

2019-07-06 18:05:55

Hi, sorry i don't want to dig up old posts and topics, but when i try to use the sound_pool, i get a minus 1 error. i don't know why, but here is what i do:
import sound_pool
p=sound_pool.sound_pool()
p.play_stationary("alert.ogg",True)
and then my computer tells me minus 1

best regards
never give up on what ever you are doing.

2019-07-07 00:57:35

If you import sound_pool, p is already associated with it. That might be your problem.

2019-07-07 09:17:56

Oh, wait, i think you are right. let me try it and let you know

best regards
never give up on what ever you are doing.

2019-07-07 09:19:28

Hi, nope it does not seem to fix the problem.
It tells me p is not defined

best regards
never give up on what ever you are doing.

2019-07-07 11:18:33

Iiuc, -1 means it could not play the sound, for whatever reason. Does it do the same for sounds we'd generally expect to work, such as c:\\windows\\media\\ding.wav if you're on windows?

看過來!
"If you want utopia but reality gives you Lovecraft, you don't give up, you carve your utopia out of the corpses of dead gods."
MaxAngor wrote:
    George... Don't do that.

2019-07-07 11:45:30

just checked, yes. it does the same

best regards
never give up on what ever you are doing.

2019-07-07 13:48:38

I believe this version still has the pack name feature.  What I would personally do is add a print statement before the load part of the function to see if it is pre-pending something to the sound name.

2019-10-18 22:22:32

I changed the looping value in the play methods to default to False. Not a major change, but I'd thought I'd let you know. It may just be my personal preference, but it makes playing a single sound a little cleaner for me.

***
You can follow me on twitter @s_luttrell and an almost never used Facebook account at skluttrell.