[PD] Resolved : Problem with alsa and command line option -nogui

Jack jack at rybn.org
Fri Nov 9 14:50:50 CET 2012


Le 09/11/2012 13:45, contact a écrit :
> Yes it's a hack , but i think the best way for this problem would be :
>
> on load detect if the dsp is off
>
> an after turn on the dsp
>
> But how can i detect dsp off in a patch ?
>
> François-Marie
>
> Le 09/11/2012 13:02, Jamie Bullock a écrit :
>>
>>
>>
>> On 9 Nov 2012, at 09:21, contact<contact at billard-francois-marie.eu> 
>> wrote:
>>
>>> With the delay betwen the loadbang and pd dsp 1 it's ok,
>>>
>>
>> This seems like a hack. Why 1000ms? Can we guarantee the DSP will be
>> ready in 1second? Does it ever take longer?
>>
>> I think it would be a lot better to have a way to query when Pd is
>> ready to process |pd dsp 1(
>>
>> It might be possible to do this with the [audiosettings] external, if
>> not, it would definitely be a useful addition.
>>
>> best,
>>
>> Jamie
>>
>>
>>
>>
>>> thank's.
>>>
>>> François-Marie BILLARD
>>>
>>> Le 09/11/2012 02:22, James Dunn a écrit :
>>>>
>>>> Are you turning on dsp with a loadbang like this ?
>>>>
>>>> [loadbang]
>>>> |
>>>> [; pd dsp 1(
>>>>
>>>> If so, try adding a delay after the loadbang:
>>>>
>>>> [loadbang]
>>>> |
>>>> [delay 1000]
>>>> |
>>>> [; pd dsp 1(
>>>>
>>>> James
>>>>
>>>>
>>>> Quoth contact, on 08/11/2012 15:53:
>>>>> Hello
>>>>> I'm new on this list and have any problem with pd in command line.
>>>>>
>>>>> When i try this command under linux
>>>>>
>>>>> pd-extended -nogui -alsa -audiodev 1 ./test.pd
>>>>>
>>>>> I haven't any sound and this message
>>>>>
>>>>>> snd_pcm_open (input): Device or resource busy
>>>>>> snd_pcm_open (output): Device or resource busy
>>>>>
>>>>> and when I try this one
>>>>>
>>>>> pd-extended -alsa -audiodev 1 ./test.pd
>>>>>
>>>>> the sound is ok.
>>>>>
>>>>> Thank's for your help
>>>>>
>>>>> François-Marie BILLARD
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pd-list at iem.at  mailing list
>>>>> UNSUBSCRIBE and account-management ->  
>>>>> http://lists.puredata.info/listinfo/pd-list
>>>>
>>>
>>> <contact.vcf>_______________________________________________
>>> Pd-list at iem.at mailing list
>>> UNSUBSCRIBE and account-management -> 
>>> http://lists.puredata.info/listinfo/pd-list
>>
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

Hello,

Have a look at the patch attached.
++

Jack


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121109/35fd27e7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: detect_dsp_onoff.pd
Type: application/puredata
Size: 489 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121109/35fd27e7/attachment.bin>


More information about the Pd-list mailing list