We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c4aec commit f210530Copy full SHA for f210530
1 file changed
addons/source-python/packages/source-python/engines/sound.py
@@ -14,7 +14,6 @@
14
from core import AutoUnload
15
# Engines
16
from engines import engines_logger
17
-from engines.tools import engine_tool
18
# Entities
19
from entities.constants import INVALID_ENTITY_INDEX
20
# Filters
@@ -179,7 +178,7 @@ def sample(self):
179
178
@property
180
def duration(self):
181
"""Return the duration of the sample."""
182
- return engine_tool.get_sound_duration_by_path(self.sample)
+ return engine_sound.get_sound_duration(self.sample)
183
184
def _unload_instance(self):
185
"""Remove the sample from the downloads list."""
0 commit comments