List and edit in-memory sounds in soundbanks
This commit is contained in:
@@ -260,10 +260,14 @@ class EditorPanel(QWidget):
|
||||
self.title.setText(s.name)
|
||||
who = s.character or (("mentions " + s.characters_inferred) if s.characters_inferred else "—")
|
||||
lim = self.ctx.ws.limit(s)
|
||||
self.meta.setText("%s / %s • %s • %.2f s, %d Hz, %s • max size: %s • %s"
|
||||
where = ""
|
||||
if s.bank:
|
||||
n = len(self.ctx.ws.locations(s))
|
||||
where = " • bank %s (%d %s)" % (s.bank, n, "copy" if n == 1 else "copies")
|
||||
self.meta.setText("%s / %s • %s • %.2f s, %d Hz, %s • max size: %s • %s%s"
|
||||
% (s.group, s.category, who, s.seconds, s.rate,
|
||||
{1: "mono", 2: "stereo"}.get(s.channels, "%d ch" % s.channels),
|
||||
"any" if lim is None else "%.1f KB" % (lim / 1024.0), s.key))
|
||||
"any" if lim is None else "%.1f KB" % (lim / 1024.0), s.key, where))
|
||||
key = s.key
|
||||
ws = self.ctx.ws
|
||||
|
||||
|
||||
Reference in New Issue
Block a user