///////////////////////////////////////////////////////
| 228 | |
| 229 | //////////////////////////////////////////////////////////// |
| 230 | Vector3f SoundSource::getDirection() const |
| 231 | { |
| 232 | if (const auto* sound = static_cast<const ma_sound*>(getSound())) |
| 233 | { |
| 234 | const auto direction = ma_sound_get_direction(sound); |
| 235 | return {direction.x, direction.y, direction.z}; |
| 236 | } |
| 237 | |
| 238 | return {}; |
| 239 | } |
| 240 | |
| 241 | |
| 242 | //////////////////////////////////////////////////////////// |