Can't get the Server to shut down full (I think) when using ASIO4ALL

19 views
Skip to first unread message

Jon

unread,
Jan 21, 2013, 1:40:47 PM1/21/13
to pyo-d...@googlegroups.com
Hi there,

Sorry to be blitzing the list today! I've got a further issue, now on windows (win7, 32 bit). When using the ASIO4ALL driver as a backend from pyo the Server fails to shutdown (or the script never quits, which I assume is because the server hasn't shut down). Sounds play fine. I've tried with several time.sleep() calls because I know there has been an issue in the past where the server fails to shutdown if its stop() call hasnt yet completed.

Is this a known issue? Should I just avoid use of ASIO for now?

cheers,
Jon

This is the script I'm running:
#--------------------------------------------
import pyo, time

devNames, devIDs =pyo.pa_get_output_devices()
for n, devName in enumerate(devNames):
    if 'ASIO' in devName: #set this to 'Primary' to use DirectSound backend (fine)
        devID=devIDs[n]

s = pyo.Server(duplex=0)
s.setVerbosity(4)
s.setOutputDevice(devID)
s.boot()
time.sleep(0.5)
s.start()
print 'server started'

s.stop()
time.sleep(0.5)
s.shutdown()
time.sleep(0.5)
print 'server stopped'
#--------------------------------------------

and this is the output:
#--------------------------------------------
pyo version 0.6.2 (uses single precision)
PortMidi warning: Something wrong with midi device!
Portmidi closed
server started
server stopped
#--------------------------------------------

Olivier Bélanger

unread,
Jan 21, 2013, 4:55:54 PM1/21/13
to pyo-d...@googlegroups.com
Hi,

ASIO is the only way to achieve low latency with pyo on Windows. I never got problem with the ASIO driver but can you see if the last change (previous mail) makes things work better?

Olivier


2013/1/21 Jon <jon.p...@gmail.com>
Reply all
Reply to author
Forward
0 new messages