I need to record audio from a microphone, but if all audio outputs are disabled on windows, an MP3 BASS_ERROR_FILEOPEN error occurs. In the code, an error occurs after the execution of the BASS_Encode_Start function, it returns 0, which throws an exception.
RecStream: = BASS_Encode_Start (Stream, PChar ('lame.exe --abr 56 -mm - rec.mp3'), BASS_ENCODE_AUTOFREE or BASS_ENCODE_FP_32BIT or BassUnicode, nil, nil)
How can this be fixed?