Skip to content
Snippets Groups Projects
Commit b3e59b61 authored by Blaß, Michael's avatar Blaß, Michael :speech_balloon:
Browse files

Added source_id property.

parent 03bef8ff
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,12 @@ class AudioFile:
"""Return (n_frames, n_channels)."""
return self.n_frames, self.n_channels
"""
@property
def source_id(self) -> SourceId:
""""""
return SourceId(self._path.name.split('.')[0], self.hash)
"""
def close(self) -> None:
"""Close the file."""
self._file.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment