|
|
|
|
179
|
def get_sound(self, name: str) -> Sound:
|
179
|
def get_sound(self, name: str) -> Sound:
|
180
|
if name not in self._sounds:
|
180
|
if name not in self._sounds:
|
181
|
sound_file_name = self.sound_file_paths[name]
|
181
|
sound_file_name = self.sound_file_paths[name]
|
182
|
- self._sounds[name] = Sound(os.path.join(self._sound_dir_path, sound_file_name))
|
|
|
|
|
182
|
+ sound_file_path = self._path_manager.path(sound_file_name)
|
|
|
183
|
+ self._sounds[name] = Sound(sound_file_path)
|
183
|
return self._sounds[name]
|
184
|
return self._sounds[name]
|
184
|
|
185
|
|
185
|
|
186
|
|