Exemplo n.º 1
0
def sound_sound_volume():
    '''The long test sound will play for 10 second with increasing volume.  '''
    master_volume(100)
    s = Sound(TEST_SOUND_LONG)
    s.volume = 0
    s.play(duration=10)
    for i in range(20):
        s.volume += 15
        time.sleep(0.5)
    s.wait()
Exemplo n.º 2
0
def sound_sound_volume():
    '''The long test sound will play for 10 second with increasing volume.  '''
    master_volume(100)
    s = Sound(TEST_SOUND_LONG)
    s.volume = 0
    s.play(duration=10)
    for i in range(20):
        s.volume += 15
        time.sleep(0.5)
    s.wait()
Exemplo n.º 3
0
def sound_master_volume():
    '''The sound match1.wav will play on the speaker 5 times (about 0.5 seconds
    each), at 60, 70, 80, 90 and 100% master volume.  Lower volumes are too low
    to hear with an unamplified speaker.
    '''
    master_volume( 60); Sound(TEST_SOUND).play().wait()
    master_volume( 70); Sound(TEST_SOUND).play().wait()
    master_volume( 80); Sound(TEST_SOUND).play().wait()
    master_volume( 90); Sound(TEST_SOUND).play().wait()
    master_volume(100); Sound(TEST_SOUND).play().wait()
Exemplo n.º 4
0
def sound_master_volume():
    '''The sound match1.wav will play on the speaker 5 times (about 0.5 seconds
    each), at 60, 70, 80, 90 and 100% master volume.  Lower volumes are too low
    to hear with an unamplified speaker.
    '''
    master_volume(60)
    Sound(TEST_SOUND).play().wait()
    master_volume(70)
    Sound(TEST_SOUND).play().wait()
    master_volume(80)
    Sound(TEST_SOUND).play().wait()
    master_volume(90)
    Sound(TEST_SOUND).play().wait()
    master_volume(100)
    Sound(TEST_SOUND).play().wait()