Csound Csound-dev Csound-tekno Search About

[Cs-dev] More on failed tests

Date2015-04-22 11:16
Fromjpff
Subject[Cs-dev] More on failed tests
It seems that my laptop has taken against realtime audio -- was OK
yesterday.  So really I need advice as how to arrange alsa/csound
interface.

Basically this computer has two sound outputs.  0 is an hcmi thing and
1 a PCM.  Problem is that I have no hcmi equipment in the house but I
cannot set device 1 as default; renumbering does not change the
0->hcmi and 1->pcm mapping.

I can set -odac:hw1 and that works but I usually work to disk so this
is not appropriate in .csound6rc.  i cannot see how to set hw:1 as
realtime audio if I am doing -odac.  Of course manual examples fail as
they set -odac in the csd file.

Is there some magic in csound and/or alsa I can tweak?
==John ffitch

PS The crash from testCsoundOrcCompileTest is spectacular
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
 *** Cannot open device 'default' for audio output: No such file or directory
Failed to initialise real time audio output
new alloc for instr 1:
Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.              overall amps:7172228372786371717393952518445676239069942596386300215148366259390239907820086808090905200872994329183382840667086905335692866226905758820006011966974053432530783515421307655036652623554857186781830186303965078962123192080646216075736472245109015637996761088975745053063977674053721690958616554635264.0
           overall samples out of range:     4039
1 errors in performance

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-04-22 12:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] More on failed tests
Have you tried editing your alsa.conf (wherever it is, e.g. /etc/modprobe.d/alsa.conf) to give
the soundcard an index? This line should do it

options   index=0


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 22 Apr 2015, at 11:16, jpff  wrote:
> 
> It seems that my laptop has taken against realtime audio -- was OK
> yesterday.  So really I need advice as how to arrange alsa/csound
> interface.
> 
> Basically this computer has two sound outputs.  0 is an hcmi thing and
> 1 a PCM.  Problem is that I have no hcmi equipment in the house but I
> cannot set device 1 as default; renumbering does not change the
> 0->hcmi and 1->pcm mapping.
> 
> I can set -odac:hw1 and that works but I usually work to disk so this
> is not appropriate in .csound6rc.  i cannot see how to set hw:1 as
> realtime audio if I am doing -odac.  Of course manual examples fail as
> they set -odac in the csd file.
> 
> Is there some magic in csound and/or alsa I can tweak?
> ==John ffitch
> 
> PS The crash from testCsoundOrcCompileTest is spectacular
> ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
> *** Cannot open device 'default' for audio output: No such file or directory
> Failed to initialise real time audio output
> new alloc for instr 1:
> Csound tidy up: Segmentation fault
> inactive allocs returned to freespace
> end of score.              overall amps:7172228372786371717393952518445676239069942596386300215148366259390239907820086808090905200872994329183382840667086905335692866226905758820006011966974053432530783515421307655036652623554857186781830186303965078962123192080646216075736472245109015637996761088975745053063977674053721690958616554635264.0
>           overall samples out of range:     4039
> 1 errors in performance
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-04-22 12:36
FromFelipe Sateler
SubjectRe: [Cs-dev] More on failed tests
AttachmentsNone  None  

You could try setting the alsa default:

http://www.alsa-project.org/main/index.php/Asoundrc#The_default_plugin

On Apr 22, 2015 8:01 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Have you tried editing your alsa.conf (wherever it is, e.g. /etc/modprobe.d/alsa.conf) to give
the soundcard an index? This line should do it

options  <device_name> index=0


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 22 Apr 2015, at 11:16, jpff <jpff@codemist.co.uk> wrote:
>
> It seems that my laptop has taken against realtime audio -- was OK
> yesterday.  So really I need advice as how to arrange alsa/csound
> interface.
>
> Basically this computer has two sound outputs.  0 is an hcmi thing and
> 1 a PCM.  Problem is that I have no hcmi equipment in the house but I
> cannot set device 1 as default; renumbering does not change the
> 0->hcmi and 1->pcm mapping.
>
> I can set -odac:hw1 and that works but I usually work to disk so this
> is not appropriate in .csound6rc.  i cannot see how to set hw:1 as
> realtime audio if I am doing -odac.  Of course manual examples fail as
> they set -odac in the csd file.
>
> Is there some magic in csound and/or alsa I can tweak?
> ==John ffitch
>
> PS The crash from testCsoundOrcCompileTest is spectacular
> ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
> *** Cannot open device 'default' for audio output: No such file or directory
> Failed to initialise real time audio output
> new alloc for instr 1:
> Csound tidy up: Segmentation fault
> inactive allocs returned to freespace
> end of score.              overall amps:7172228372786371717393952518445676239069942596386300215148366259390239907820086808090905200872994329183382840667086905335692866226905758820006011966974053432530783515421307655036652623554857186781830186303965078962123192080646216075736472245109015637996761088975745053063977674053721690958616554635264.0
>           overall samples out of range:     4039
> 1 errors in performance
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-04-22 13:43
Fromjpff
SubjectRe: [Cs-dev] More on failed tests
This did something; now aplay fails on mono files
>  aplay fox.wav
Playing WAVE 'fox.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:1239: Channels count non available

But an improvement!

On Wed, 22 Apr 2015, Felipe Sateler wrote:

> 
> You could try setting the alsa default:
> 
> http://www.alsa-project.org/main/index.php/Asoundrc#The_default_plugin
>

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-04-22 16:34
FromAnders Genell
SubjectRe: [Cs-dev] More on failed tests
Then, from the same alsa-project instructions, I would suggest adding a "plug" type pcm in your asoundrc. It does mixing, resampling and a few other tricks as needed (with corresponding added latency of course). 

Something like

pcm.!default {
 type plug
 slave hw:1,0
}

Regards,
Anders

> 22 apr 2015 kl. 14:43 skrev jpff :
> 
> This did something; now aplay fails on mono files
>> aplay fox.wav
> Playing WAVE 'fox.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
> aplay: set_params:1239: Channels count non available
> 
> But an improvement!
> 
>> On Wed, 22 Apr 2015, Felipe Sateler wrote:
>> 
>> 
>> You could try setting the alsa default:
>> 
>> http://www.alsa-project.org/main/index.php/Asoundrc#The_default_plugin
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net