Windows general breakdown

I’m currently having an issue with my Csound install on Windows 10. I don’t use it often on Windows, but I’m pretty sure it was working last time.

  • I get no sound out
  • csound --devices returns the following :
libsndfile-1.0.31
0 audio input devices
0 audio output devices

And when starting a realtime performance, Csound also returns
unknown rtaudio module: 'PortAudio', using dummy module
(same if I change for winmme or anything else)

In the same time, my audio device is detected correctly by windows, working with Reaper, detected by web browser and everything.

I wanted to download a new version (I had 6.14 or something) and found out that the two first links (installer and binaries for 64bits) are dead on csound.com. Installing the XP 64 bits didn’t solve the problem

So I tried to build it myself (with MSVC), and ended with this issue :

 Could not find a package configuration file provided by "SndFile" with any
  of the following names:

    SndFileConfig.cmake
    sndfile-config.cmake

  Add the installation prefix of "SndFile" to CMAKE_PREFIX_PATH or set
  "SndFile_DIR" to a directory containing one of the above files.  If
  "SndFile" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:431 (find_package)

I know, that’s a lot of problems. Let’s start with the first one : what might cause Csound not to detect the audio device ? Is that related to portaudio ? Usually, I would have installed a new version to check if it can be solved like this, but unfortunately, I was not able to find binaries / or build some.

Did you try the very latest release for Windows?

The links were broken yesterday on the website.
It’s working perfectly fine now. I guess I overreacted :joy:

I didn’t notice the links were down as I usually just go to github. Nice to know it’s working fine again :slight_smile:

I know it’s an old thread, but since I had to debug something like this recently and the internet has no easy answer… FYI, that happens typically when OPCODE6DIR64 was not properly set. The csound installer for Windows would normally set it to

OPCODE6DIR64=C:\Program Files\Csound6_x64\plugins64\

The portaudio.dll is not loaded from there but from C:\Program Files\Csound6_x64\bin but for reasons that are still mysterious to me (I didn’t check the source code), if OPCODE6DIR64 is not set then portaudio.dll will also not be found by csound.

So, e.g. verify that from a command prompt by typing echo %OPCODE6DIR64% or just set. The latter will show all the environment variables.

Also, the advice to use depwalker to troubleshoot these issues is not very useful here because that program can’t detect what’s loaded dynamically with LoadLibrary and csound does precisely that for its plugins, including the rtaudio modules.