MCPcopy Create free account
hub / github.com/SolarLune/masterplan / IsSound

Method IsSound

resources.go:346–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344}
345
346func (resource *Resource) IsSound() bool {
347 if resource.FinishedDownloading() {
348 resource.Parse()
349 return strings.Contains(resource.MimeType, "audio")
350 }
351 return false
352}
353
354var playingSounds = map[string]time.Time{}
355

Callers 1

UpdateMethod · 0.80

Calls 3

FinishedDownloadingMethod · 0.95
ParseMethod · 0.95
ContainsMethod · 0.45

Tested by

no test coverage detected