dechamps / FlexASIO

A flexible universal ASIO driver that uses the PortAudio sound I/O library. Supports WASAPI (shared and exclusive), KS, DirectSound and MME.
Other
1.29k stars 70 forks source link

Wrong channel count causes initialization failure #197

Closed Skilz-yt closed 10 months ago

Skilz-yt commented 10 months ago

Ableton and other software not working at all, windows has all sound working though but anything aiso isnt working right. FlexASIO.log

dechamps commented 10 months ago

Your configuration file contains:

backend = "Windows WASAPI"

[input]
channels = 2
device = "Microphone (2- USB Audio CODEC )"

But that device only has 1 input channel available, not 2:

Found device: PortAudio device index 30 (name: 'Microphone (2- USB Audio CODEC )', host API: 2, default sample rate: 48000, max input channels: 1, max output channels: 0, input latency: 0.003 (low) 0.01 (high), output latency: 0 (low) 0 (high))

The error is therefore exactly what one would expect:

[PortAudio] WASAPI ERROR PAERROR: -9998 : Invalid number of channels
 [FUNCTION: OpenStream FILE: D:\a\FlexASIO\FlexASIO\src\portaudio\src\hostapi\wasapi\pa_win_wasapi.c {LINE: 3906}]
--- EXITING CONTEXT: createBuffers() (-999 [ASE_HWMalfunction] unable to open PortAudio stream: Invalid number of channels)

You should be able to fix your issue by removing the channels = 2 line, which will make FlexASIO use the maximum number of channels available from that device (in this case, 1). If you expected to see 2 channels from that device, you may want to check the audio device channel configuration in the Windows audio settings.

Skilz-yt commented 10 months ago

thats it sorted now, it was cause in the recordings tab of sounds it was on one channel only, kind of odd as it was working last night. Thanks