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 f1ef4f9 commit bc4b1deCopy full SHA for bc4b1de
1 file changed
addons/source-python/packages/source-python/engines/sound.py
@@ -14,6 +14,7 @@
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
@@ -178,7 +179,7 @@ def sample(self):
178
179
@property
180
def duration(self):
181
"""Return the duration of the sample."""
- return engine_sound.get_sound_duration(self.sample)
182
+ return engine_tool.get_sound_duration_by_path(self.sample)
183
184
def _unload_instance(self):
185
"""Remove the sample from the downloads list."""
0 commit comments