Does any one can normally play dsf/dff in DoP mode in Linux(Ubuntu)? I try to play dsf in DoP mode in Ubuntu, but I only hear a noisy background with a low level music sound from DAC(Sony PHA-3) output, my DAC's DSD indicator light is off.
My environment:
Ubuntu 22.04, dotnet 6.0.400, Bass.NET 2.4.17.0 with Bass linux native libs,
My code snippet:
bool code = Bass.BASS_Init(-1, 176400, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);
if (code != true)
{
Console.WriteLine("Error returned from BASS_INIT");
}
else
{
Console.WriteLine("BASS_INIT OK");
}
stream = BassDsd.BASS_DSD_StreamCreateFile("test.dsf", 0, 0, BASSFlag.BASS_DSD_DOP | BASSFlag.BASS_SAMPLE_FLOAT,0);
if (stream == 0)
{
BASSError err = Bass.BASS_ErrorGetCode();
Console.WriteLine("create file error code={0}",err);
}
BASS_CHANNELINFO info = new BASS_CHANNELINFO();
bool ret = Bass.BASS_ChannelGetInfo(stream, info);
if (ret == false)
{
BASSError err = Bass.BASS_ErrorGetCode();
Console.WriteLine("channel getinfo error code={0}",err);
}
bool result = Bass.BASS_ChannelPlay(stream, false);
176400 in BASS_Init is the sample frequency of the test.dsf.
Any advice is appreciated.