fix
This commit is contained in:
parent
69ca8a90af
commit
3a5d0bb9f4
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ void fishbone::Mixer::read(short* buffer, size_t frames) {
|
|||
float d;
|
||||
float lf, rf;
|
||||
|
||||
for(int j = 0; j < 3; j++) r[j] = this->sounds[i]->position[j] - this->position[j];
|
||||
for(int j = 0; j < 3; j++) r[j] = this->position[i] - this->sounds[i]->position[j];
|
||||
|
||||
angle = atan2(r[2], r[0]);
|
||||
v = cos(angle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue