sounds

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: GPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sounds synthesizes notifier's notification sounds. notifyd writes them out at start-up; the Android app bundles the same bytes, generated by ./gen.

Index

Constants

This section is empty.

Variables

View Source
var Names = []string{"message", "urgent", "question"}

Names are the sounds: an ordinary message, a high-priority one, and a question waiting for an answer.

Functions

func Install

func Install(dir string) (map[string]string, error)

Install writes the sounds into dir as <name>.wav, rewriting a file only when it differs, and returns their paths by name.

func WAV

func WAV(name string) ([]byte, error)

WAV returns sound [name] as a 16-bit mono PCM WAV file. The same name always gives the same bytes.

Types

This section is empty.

Directories

Path Synopsis
Command gen writes notifier's sounds as notifier_<name>.wav into a directory, by default the Android app's raw resources:
Command gen writes notifier's sounds as notifier_<name>.wav into a directory, by default the Android app's raw resources:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL