fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fluid-dev] Stopping fluidsynth via a socket


From: John O'Hagan
Subject: [fluid-dev] Stopping fluidsynth via a socket
Date: Sat, 29 Jan 2011 02:44:51 +0000
User-agent: KMail/1.13.5 (Linux/2.6.32-2011-01-16-16.13; KDE/4.4.5; i686; ; )

I'm starting fluidsynth as a python subprocesss like this:

subprocess.Popen(["fluidsynth", "-sli", "-g0.5", "-C1", "-R1","-a", 'alsa', "-
j", '/usr/share/sounds/sf2/FluidR3_GM.sf2'])

communicating like this:

s= socket.socket()
s.connect(('',9800))

and I want to stop it like this:

s.send('quit\n')
s.recv(1024)

I receive the "'cheers!\n" reply, but fluidsynth doesn't quit. The same quit 
command works in the shell and it also works if I write it to the subprocess 
stdin handle, just not using a socket.

Is there something else I need to send fluidsynth via a socket to make it quit? 

Regards,

John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]