oss

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package oss provides access to the Open Sound System API.

Index

Constants

View Source
const (
	SOUND_MIXER_READ_VOLUME  = 0x80044D00
	SOUND_MIXER_WRITE_VOLUME = 0xC0044D00
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mixer

type Mixer struct {
	// contains filtered or unexported fields
}

func OpenMixer

func OpenMixer(device string) (*Mixer, error)

func (*Mixer) AdjustVolume

func (m *Mixer) AdjustVolume(amount int) error

func (*Mixer) Close

func (m *Mixer) Close() error

func (*Mixer) SetVolume

func (m *Mixer) SetVolume(volume int) error

func (*Mixer) ToggleMute

func (m *Mixer) ToggleMute() error

func (*Mixer) Volume

func (m *Mixer) Volume() int

Jump to

Keyboard shortcuts

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