import time
import pygame
import os
import atexit

# Import the appropriate modules, or set them to None if we cannot.

disable = os.environ.get("RENPY_DISABLE_SOUND", "")

pss = None

if 'pss' not in disable:
    try:
        import pysdlsound as pss
        pss.check_version(4)
        atexit.register(pss.quit)
    except:
        pass

    if pss is None:
        try:
            import android_sound as pss #@UnresolvedImport @Reimport
            print "Imported android_sound."
        except:
            pass

        
# Save the mixer, and restore it at exit.

old_wave = None
Exemple #2
0
import renpy.audio  # @UnusedImport
import renpy.display  # @UnusedImport

import time
import pygame_sdl2  # @UnusedImport
import os

# Import the appropriate modules, or set them to None if we cannot.

disable = os.environ.get("RENPY_DISABLE_SOUND", "")

if 'pss' not in disable:

    try:
        import pysdlsound as pss
        pss.check_version(4)  # @UndefinedVariable
    except:
        import traceback
        traceback.print_exc()
        pss = None

# Save the mixer, and restore it at exit.

old_wave = None
old_midi = None

# This is True if we were able to sucessfully enable the pcm audio.
pcm_ok = None

unique = time.time()
serial = 0
Exemple #3
0
import time
import pygame
import os
import atexit

# Import the appropriate modules, or set them to None if we cannot.

disable = os.environ.get("RENPY_DISABLE_SOUND", "")

pss = None

if 'pss' not in disable:
    try:
        import pysdlsound as pss
        pss.check_version(4)
        atexit.register(pss.quit)
    except:
        pass

    if pss is None:
        try:
            import android.sound as pss  #@UnresolvedImport @Reimport
            print "Imported android.sound."
        except:
            pass

# Save the mixer, and restore it at exit.

old_wave = None
old_midi = None
Exemple #4
0
import renpy.display  # @UnusedImport

import time
import pygame_sdl2  # @UnusedImport
import os
import atexit

# Import the appropriate modules, or set them to None if we cannot.

disable = os.environ.get("RENPY_DISABLE_SOUND", "")

if 'pss' not in disable:

    try:
        import pysdlsound as pss
        pss.check_version(4)  # @UndefinedVariable
        atexit.register(pss.quit)  # @UndefinedVariable
    except:
        import traceback
        traceback.print_exc()
        pss = None

# Save the mixer, and restore it at exit.

old_wave = None
old_midi = None

# This is True if we were able to sucessfully enable the pcm audio.
pcm_ok = None

unique = time.time()