Skip to content

tajtiattila/basicsound.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gobasicsound

Gobasicsound is a minimal sound library to play sound effects. It is targeted for applications, therefore it can play only one sound effect at once.

Functions

The following two functions are provided:

import gobasicsound
func Play(string filename, loopSound bool) // play sound file
func Stop() // stop currently played sound

Platforms

Mac OS X

On Mac OS X, gobasicsound uses the Cocoa NSSound in a separate thread.

Implementation files: - gobasicsound_darwin.go (cgo interface) - basicsound_darwin.m (Objective-C module accessible from C and cgo)

Windows

On Windows, gobasicsound use the PlaySound() API in winmm.dll.

  • goplaysound_windows.go

About

Sound library for Go for Mac OS X and Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published