Source code for albow.sound
#
# Albow - Sound utilities
#
import pygame
from pygame import mixer
[docs]def pause_sound():
try:
mixer.pause()
except pygame.error:
pass
[docs]def resume_sound():
try:
mixer.unpause()
except pygame.error:
pass
[docs]def stop_sound():
try:
mixer.stop()
except pygame.error:
pass