Open GoogleCodeExporter opened 9 years ago
pyo version 0.5.0 works.
Original comment by que...@gmail.com
on 21 Nov 2011 at 6:57
Ok, I added porttime (timer for portmidi) some time ago and it seems to be
faulty in Pt_Stop()... I didn't really use it so I will simply removed it for
now...
Original comment by belan...@gmail.com
on 21 Nov 2011 at 11:11
I removed everything about Porttime from sources... Can you check if that fixes
the segfault?
Original comment by belan...@gmail.com
on 22 Nov 2011 at 3:48
It seems I have the same issue with Windows Seven, Python 2.7.2 (32bits) and
pyo 0.5/0.6 (tried both)
Here is what I get :
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on
win32
>>> from pyo import *
pyo version 0.5.0 (uses single precision)
>>> s = Server().boot()
PortMidi warning: Something wrong with midi device!
Portmidi closed
Then interpreter craches.
I don't know much about audio and so on, but looking at other posts I tried to
list my devices:
>>> pa_list_devices()
0: OUT, name: Microsoft Sound Mapper - Output, host api index: 0, default sr:
44100 Hz, latency: 0.200000 s
1: OUT, name: Speakers (Realtek High Definiti, host api index: 0, default sr:
44100 Hz, latency: 0.200000 s
2: OUT, name: Primary Sound Driver, host api index: 1, default sr: 44100 Hz,
latency: 0.000000 s
3: OUT, name: Speakers (Realtek High Definition Audio), host api index: 1,
default sr: 44100 Hz, latency: 0.000000 s
and my default device:
>>> pa_get_default_output()
1: OUT, name: Speakers (Realtek High Definiti, default sr: 44100 Hz, latency:
0.200000 s
1
Then I tryied to set all devices as output device :
>>> s = Server()
>>> s.setOutputDevice(0)
>>> s.boot()
etc.
I also tried with another PC, same thing. Any idea ?
Thanks.
Fabrice
Original comment by fabrice....@gmail.com
on 26 Jan 2012 at 3:24
You don't seem to have any audio input configured, so first thing is to try pyo
without looking for audio input. You can do it by setting the Server's duplex
argument to 0.
s = Server(duplex=0).boot()
On Windows, you should install the ASIO4ALL driver to have low latency audio
inputs/outputs...
Olivier
p.s.: And reinstall 0.6.0, much more stable!
Original comment by belan...@gmail.com
on 26 Jan 2012 at 6:34
Thanks for your fast replay.
Indeed I have no input device plugged in my computer, so Windows don't seem to
"start" the input devices and I can't see them using pa_list_devices(). However
with ASIO4ALL driver, I can see one.
>>> from pyo import *
pyo version 0.6.0 (uses single precision)
>>> pa_list_devices()
AUDIO devices:
0: OUT, name: Microsoft Sound Mapper - Output, host api index: 0, default sr:
44100 Hz, latency: 0.200000 s
1: OUT, name: Speakers (Realtek High Definiti, host api index: 0, default sr:
44100 Hz, latency: 0.200000 s
2: OUT, name: Primary Sound Driver, host api index: 1, default sr: 44100 Hz,
latency: 0.000000 s
3: OUT, name: Speakers (Realtek High Definition Audio), host api index: 1,
default sr: 44100 Hz, latency: 0.000000 s
4: IN, name: ASIO4ALL v2, host api index: 2, default sr: 44100 Hz, latency:
0.011610 s
4: OUT, name: ASIO4ALL v2, host api index: 2, default sr: 44100 Hz, latency:
0.011610 s
>>> pa_get_default_output()
1: OUT, name: Speakers (Realtek High Definiti, default sr: 44100 Hz, latency:
0.200000 s
1
>>> pm_list_devices()
MIDI devices:
0: OUT, name: Microsoft MIDI Mapper, interface: MMSystem
1: OUT, name: Microsoft GS Wavetable Synth, interface: MMSystem
>>> pm_get_default_output()
0: OUT, name: Microsoft MIDI Mapper, interface: MMSystem
0
Thank to your solution, I can now start the server without crashing the
interpreter but I still have the midi issue. However I can here some sounds so,
it's fine to me.
Maybe I now have the same issue as above ? (segfaults on Ubuntu Lucid)
>>> s=Server(duplex=0).boot()
PortMidi warning: Something wrong with midi device!
Portmidi closed
>>> s.start()
<pyolib.server.Server object at 0x022F0350>
>>> a=Sine(mul=0.01).out()
>>> s.stop()
Same using ASIO4ALL
>>> s=Server()
>>> s.setInOutDevice(4)
>>> s.boot()
PortMidi warning: Something wrong with midi device!
Portmidi closed
<pyolib.server.Server object at 0x021B0350>
>>> s.start()
<pyolib.server.Server object at 0x021B0350>
>>> a=Sine(mul=0.01).out()
>>> s.stop()
Fabrice
Original comment by fabrice....@gmail.com
on 27 Jan 2012 at 9:42
Original issue reported on code.google.com by
que...@gmail.com
on 21 Nov 2011 at 6:46