Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadNotificationSound ¶
DownloadNotificationSound downloads a free notification sound from the internet
func GetFreeNotificationSounds ¶
GetFreeNotificationSounds returns a list of URLs for free notification sounds
Types ¶
type NotificationSound ¶
type NotificationSound struct { SampleRate int Duration time.Duration Frequency float64 Volume float64 }
NotificationSound represents a notification sound generator
func NewNotificationSound ¶
func NewNotificationSound() *NotificationSound
NewNotificationSound creates a new notification sound generator with default values
func (*NotificationSound) GenerateBeep ¶
func (ns *NotificationSound) GenerateBeep() ([]byte, error)
GenerateBeep generates a simple sine wave beep as WAV data
func (*NotificationSound) SaveToFile ¶
func (ns *NotificationSound) SaveToFile(filename string) error
SaveToFile saves the generated beep to a WAV file
Click to show internal directories.
Click to hide internal directories.