[Csnd] Audio output error,...

Dear Group,

First, happy holidays!

MacBook Pro 10.15.7 OS,
using CsoundQt-d-html-cs6, ver 0.9.8.1, 6162 for 64bit.

Projects worked fine a few days ago. Haven’t changed any setting on the computer or Csound.
No output from the headphone jack.

Error coming up on projects that worked fine a few days ago and now comes up with output error. Mac is good, Peterson picks up tone from other sources, headphones are fine with other sources.

Points to something in Csound, don’t know what it is, at a loss.

Thanks all,
-Partev

When I render, this is what come out on the sidebar,….

STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
rtaudio: PortAudio module enabled …
using callback interface
Elapsed time at end of orchestra compile: real: 0.005s, CPU: 0.005s
sorting score …
… done
Elapsed time at end of score sort: real: 0.005s, CPU: 0.005s
midi channel 1 using instr 3206
midi channel 2 using instr 3206
midi channel 3 using instr 3206
midi channel 4 using instr 3206
midi channel 5 using instr 3206
midi channel 6 using instr 3206
midi channel 7 using instr 3206
midi channel 8 using instr 3206
midi channel 9 using instr 3206
midi channel 10 using instr 3206
midi channel 11 using instr 3206
midi channel 12 using instr 3206
midi channel 13 using instr 3206
midi channel 14 using instr 3206
midi channel 15 using instr 3206
midi channel 16 using instr 3206
midi channel 17 using instr 3206
midi channel 18 using instr 3206
midi channel 19 using instr 3206
midi channel 20 using instr 3206
midi channel 21 using instr 3206
midi channel 22 using instr 3206
midi channel 23 using instr 3206
midi channel 24 using instr 3206
midi channel 25 using instr 3206
midi channel 26 using instr 3206
midi channel 27 using instr 3206
midi channel 28 using instr 3206
midi channel 29 using instr 3206
midi channel 30 using instr 3206
midi channel 31 using instr 3206
midi channel 32 using instr 3206
midi channel 33 using instr 3206
midi channel 34 using instr 3206
midi channel 35 using instr 3206
midi channel 36 using instr 3206
midi channel 37 using instr 3206
midi channel 38 using instr 3206
midi channel 39 using instr 3206
midi channel 40 using instr 3206
midi channel 41 using instr 3206
midi channel 42 using instr 3206
midi channel 43 using instr 3206
midi channel 44 using instr 3206
midi channel 45 using instr 3206
midi channel 46 using instr 3206
midi channel 47 using instr 3206
midi channel 48 using instr 3206
midi channel 49 using instr 3206
midi channel 50 using instr 3206
midi channel 51 using instr 3206
midi channel 52 using instr 3206
midi channel 53 using instr 3206
midi channel 54 using instr 3206
midi channel 55 using instr 3206
midi channel 56 using instr 3206
midi channel 57 using instr 3206
midi channel 58 using instr 3206
midi channel 59 using instr 3206
midi channel 60 using instr 3206
midi channel 61 using instr 3206
midi channel 62 using instr 3206
midi channel 63 using instr 3206
midi channel 64 using instr 3206
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 1024 sample-frame blocks
reading 4096-byte blks of shorts from adc (RAW)
PortAudio V19.7.0-devel, revision 147dd722548358763a8b649b3e4b41dfffbcfbb6
0: adc0 (MacBook Pro Microphone [Core Audio, 1 in, 0 out])
PortAudio: selected input device ‘MacBook Pro Microphone’
0: dac0 (External Headphones [Core Audio, 0 in, 2 out])
1: dac1 (MacBook Pro Speakers [Core Audio, 0 in, 2 out])
PortAudio: selected output device ‘External Headphones’
*** PortAudio: error: -9998: Invalid number of channels
closing device
Failed to initialise real time audio output

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Hi Partev
It looks like your audio input device has only one channel, while the output has two. IIRC there is a flag that can set the number of channels for in and out separately. Something like nchnls_input=1 or similar. Then it should work.
Unable to test now, sorry abut that.
All best
Øyvind

I’ll try that. Thanks.
Happy holidays.

-Partev

That didn’t do it, just gave me syntax error for something else. Have to
rethink this now.

Hmmm,… maybe time to bump up to that new version of Csound.

Thanks,
-Partev

Its nchnls_i =1 as far as I remember

yes and this nasty error is related to a change in mac os which set the internal mic to mono rather than stereo. this caused a problem in portaudio.

if the new version does not help, nor the nchnls_i = 1:
- set real time input to none.
- choose another RT audio module (coreaudio should be fine, jackosx is best in my opinion).

best -
  joachim