Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoverOptions ¶
type DiscoverOptions struct {
PluginRoot string // Root directory of the plugin (for built-in sounds)
IncludeBuiltIn bool
IncludeSystem bool
MaxSystemDepth int // Max directory depth for Linux system sounds (default 5)
}
DiscoverOptions controls which sound sources to scan.
type SoundInfo ¶
type SoundInfo struct {
Name string `json:"name"`
Path string `json:"path"`
Format string `json:"format"`
Source string `json:"source"`
Description string `json:"description"`
}
SoundInfo represents a discovered sound file.
func Discover ¶
func Discover(opts DiscoverOptions) []SoundInfo
Discover scans for available sounds and returns them grouped by source. Built-in sounds are listed first, then system sounds.
Click to show internal directories.
Click to hide internal directories.