///////////////////////////////////////////////////////
| 215 | |
| 216 | //////////////////////////////////////////////////////////// |
| 217 | Vector3f SoundSource::getPosition() const |
| 218 | { |
| 219 | if (const auto* sound = static_cast<const ma_sound*>(getSound())) |
| 220 | { |
| 221 | const auto position = ma_sound_get_position(sound); |
| 222 | return {position.x, position.y, position.z}; |
| 223 | } |
| 224 | |
| 225 | return {}; |
| 226 | } |
| 227 | |
| 228 | |
| 229 | //////////////////////////////////////////////////////////// |