# CsoundQt dac output select failure

**URL:** <https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508>\
**Category:** Newbies\
**Created:** [January 14, 2024, 7:54pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508 "2024-01-14T19:54:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimAikin](https://forum.csound.com/user_avatar/forum.csound.com/jimaikin/32/512_2.png) [@JimAikin](https://forum.csound.com/u/JimAikin)\
**Post date:** [January 14, 2024, 7:54pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/1 "2024-01-14T19:54:54Z")

</div>

This is a problem I’ve encountered before. Haven’t used Csound for a couple of years, so today I downloaded it and did a fresh install.

Totally standard Windows 10 PC, Focusrite USB ASIO audio interface, works fine with everything. Installed Csound and CsoundQt. Went to the CsoundQt Configure box and directed the audio I/O (adc and dac) to the Focusrite USB ASIO device. Clicked the Test Audio button. Here’s the output:

PortAudio: selected output device ‘Focusrite USB ASIO’  
\*\*\* PortAudio: error: -9985: Device unavailable

I’m working on an article that I’ll be submitting to a website. I’ll be recommending Csound as a cool software option! So how do I get this working, and how can I explain it to readers so they won’t encounter the same problem?

---

<div class="post-metadata">

**Author:** ![tarmo](https://forum.csound.com/letter_avatar_proxy/v4/letter/t/c37758/32.png) [@tarmo](https://forum.csound.com/u/tarmo)\
**Post date:** [January 14, 2024, 9:33pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/2 "2024-01-14T21:33:38Z")

</div>

Hi!

It is hard to tell, I have little personal experience on Windows. Please try and report the following:

- does CsoundQt work with the internal sound card

- is the result same (I guess it is) if you run the csd with Run in Terminal? Does command line csound give the same result?

- can you try both portaudio options (blocking and callback)

- is there perhaps several Focusrite USB entries in the device list? Like one with directaion, one through something else?

- is there something that is using the interface in the same time?

- do you have perhaps another USB interface to try out with?

I will make an experiments on Windows with an USB card when I get a chance.

Greetings,  
Tarmo

Kontakt JimAikin via The Csound Community (\<[noreply@forum.csound.com](mailto:noreply@forum.csound.com)\>) kirjutas kuupäeval P, 14. jaanuar 2024 kell 22:05:

---

<div class="post-metadata">

**Author:** ![JimAikin](https://forum.csound.com/user_avatar/forum.csound.com/jimaikin/32/512_2.png) [@JimAikin](https://forum.csound.com/u/JimAikin)\
**Post date:** [January 14, 2024, 9:59pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/3 "2024-01-14T21:59:19Z")

</div>

> [@tarmo](#):
>
> does CsoundQt work with the internal sound card

No. However, I get a different result, namely error -9998, invalid number of channels. I’m not sure why the AudioMidiTest.csd is set up with nchnls = 8, but when I switch that back to 2, I get the -9985 error with the internal sound card.

> [@tarmo](#):
>
> is the result same (I guess it is) if you run the csd with Run in Terminal? Does command line csound give the same result?

I would need instructions on how to do that.

> [@tarmo](#):
>
> can you try both portaudio options (blocking and callback)

I tried that. It didn’t change anything.

> [@tarmo](#):
>
> is there perhaps several Focusrite USB entries in the device list? Like one with directaion, one through something else?

There are Windows MME and Wasapi items that use the Focusrite, but no other Focusrite ASIO.

> [@tarmo](#):
>
> is there something that is using the interface in the same time?

Other Windows devices (such as my browser) are able to use it at the same time as another audio program (such as Reason or FL Studio). This should not be a problem.

> [@tarmo](#):
>
> do you have perhaps another USB interface to try out with?

No. Sorry.

By the way, there’s a trivial bug you may want to know about. When CsoundQt is first launched, if I go directly to the Configure window the popup menu of adc and dac devices opens and closes instantly. it’s not accessible. However, after I hit the Run button once in the main window, the popup list populates normally.

The thing is, NO other audio program EVER has trouble finding the ASIO driver and using it. Why should Csound be any different? I"m not sure this is a CsoundQt problem – but the listserv for Csound failed to send me an email to confirm my registration, so I’m unable to ask the question there.

---

<div class="post-metadata">

**Author:** ![joachim](https://forum.csound.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@joachim](https://forum.csound.com/u/joachim)\
**Post date:** [January 14, 2024, 10:13pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/4 "2024-01-14T22:13:29Z")

</div>

i am not a windows user either, but i always recommend to set up an  
audio card in the system as default, and then select this default in  
csoundqt’s configure tab (-adc for input and -odac for output).

but to be honest: if you want to propagate csound for windows users, why  
not point to cabbage? i think rory did and does a great job, and for  
csoundqt we never had enough support from windows users nor from windows  
developers.

---

<div class="post-metadata">

**Author:** ![JimAikin](https://forum.csound.com/user_avatar/forum.csound.com/jimaikin/32/512_2.png) [@JimAikin](https://forum.csound.com/u/JimAikin)\
**Post date:** [January 14, 2024, 10:26pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/5 "2024-01-14T22:26:51Z")

</div>

> [@joachim](#):
>
> if you want to propagate csound for windows users, why  
> not point to cabbage?

I’ll try that. I’ve never used Cabbage, but I’ve used CsoundQt off and on (not often) over the years, so I’m more familiar with the UI. Also, there is this caveat is at the top of the Cabbage manual: “It is possible to use Cabbage to run Csound in the more traditional score-driven way, but your success may vary.” Since I like using the score, this is a bit of a concern for me.

---

<div class="post-metadata">

**Author:** ![JimAikin](https://forum.csound.com/user_avatar/forum.csound.com/jimaikin/32/512_2.png) [@JimAikin](https://forum.csound.com/u/JimAikin)\
**Post date:** [January 14, 2024, 10:32pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/6 "2024-01-14T22:32:39Z")

</div>

> [@joachim](#):
>
> if you want to propagate csound for windows users, why  
> not point to cabbage?

I have now confirmed that Cabbage is able to send audio to the Focusrite without trouble. Possibly this is because Cabbage never uses Portaudio at all. You would know more about that than I would.

---

<div class="post-metadata">

**Author:** ![tarmo](https://forum.csound.com/letter_avatar_proxy/v4/letter/t/c37758/32.png) [@tarmo](https://forum.csound.com/u/tarmo)\
**Post date:** [January 14, 2024, 10:30pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/7 "2024-01-14T22:30:47Z")

</div>

Hi!

I updated now CsoundQt-1.1.1-Wind64.zip with Examples and uploaded to Github. Would you download that and see if Examples are present and appear in the menu?

If yes, could you try to open the simplest example, Examples → CsoundQt → Getting Started → Hello World and see if that works.

Probably not. I think it has something to do with the portaudio module. You are right, this is core Csound specific.  
You can also try to set input device to none to see if that makes any difference.

To try command line Csound, you should command line (cmd.exe) and type

csound --version

If it finds csound and you see some output, you can try again to run a csd from command line. Type again  
csound

leave a space and drag a csd file there from the file manager like  
csound C:/Users/Jim/Documents/csound/test.csd

Press

and see if you get any new results

Tarmo

Kontakt JimAikin via The Csound Community (\<[noreply@forum.csound.com](mailto:noreply@forum.csound.com)\>) kirjutas kuupäeval E, 15. jaanuar 2024 kell 00:09:

---

<div class="post-metadata">

**Author:** ![tarmo](https://forum.csound.com/letter_avatar_proxy/v4/letter/t/c37758/32.png) [@tarmo](https://forum.csound.com/u/tarmo)\
**Post date:** [January 14, 2024, 10:36pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/8 "2024-01-14T22:36:33Z")

</div>

I oppose a bit to that - many people DO use CsoundQt on Windows and it does work. I guess, it is a problem of some specific configuration conflict that Jim has.

Cabbage is definitely a great piece of software, I agree here absolutely.

Best!  
tarmo

Kontakt joachim heintz via The Csound Community (\<[noreply@forum.csound.com](mailto:noreply@forum.csound.com)\>) kirjutas kuupäeval E, 15. jaanuar 2024 kell 00:25:

---

<div class="post-metadata">

**Author:** ![JimAikin](https://forum.csound.com/user_avatar/forum.csound.com/jimaikin/32/512_2.png) [@JimAikin](https://forum.csound.com/u/JimAikin)\
**Post date:** [January 15, 2024, 4:42am UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/9 "2024-01-15T04:42:15Z")

</div>

> [@tarmo](#):
>
> I updated now CsoundQt-1.1.1-Wind64.zip with Examples and uploaded to Github. Would you download that and see if Examples are present and appear in the menu?

Yes. I downloaded and installed it. The examples are there.

Not only that, but portaudio is now working! I have no idea what changed, if anything. I loaded “Trapped in Convert” and it played. I then loaded and played one of my own .csd files, and it played nicely too.

I’m now using Portaudio(callback) with both the Override and Ignore CsOptions checkboxes checked. However, the in and out fields just say adc and dac. There is no number next to them – and the popup menu boxes with which I might select a specific input or output device _never_ appear. A little dialog box appears and then disappears instantly.

I honestly have no clue what’s going on. It’s working at the moment, so I’m not going to touch anything.

---

<div class="post-metadata">

**Author:** ![rory](https://forum.csound.com/user_avatar/forum.csound.com/rory/32/7_2.png) [@rory](https://forum.csound.com/u/rory)\
**Post date:** [January 15, 2024, 9:28am UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/10 "2024-01-15T09:28:16Z")

</div>

Sorry I’m late to the party. I’m glad you found a solution Jim. FWIW, I’ve found ASIO4ALL to be pretty reliable with Csound. It provides generic ASIO drivers that can interface with most sound cards, and always seems to be picked up without issue by Csound.

And yes, I think CsoundQT is probably a better option than Cabbage if you’re exploring more score driven work.

p.s. nice to see you thinkering with Csound again 😉

---

<div class="post-metadata">

**Author:** ![JimAikin](https://forum.csound.com/user_avatar/forum.csound.com/jimaikin/32/512_2.png) [@JimAikin](https://forum.csound.com/u/JimAikin)\
**Post date:** [January 15, 2024, 6:56pm UTC](https://forum.csound.com/t/csoundqt-dac-output-select-failure/1508/11 "2024-01-15T18:56:15Z")

</div>

> [@rory](#):
>
> p.s. nice to see you thinkering with Csound again 😉

I’ve pitched a website that I sometimes write for on the idea of an article on Csound, so I could see I’d better figure out what’s going on. Lately I’ve been using VCV Rack for computer music experiments – but while VCV is easier to get on with, there’s really no timeline. I’m old-fashioned enough that I like composing in a timeline.
