SC13048: DAC Audio playback

Hi
I am trying this example
https://docs.ghielectronics.com/software/tinyclr/tutorials/analog-out.html?q=dac
but get an error
image

I had added a resource file, but it did not help
image

add

using Your_name_space.Properties;

to the top.

Thanks…that worked

        var analogOut = dac.OpenChannel(SC13048.Dac.PA4);

is it not allowed on this board
#### Exception System.InvalidOperationException - CLR_E_INVALID_OPERATION (1) ####
#### Message:
#### GHIElectronics.TinyCLR.Devices.Dac.Provider.DacControllerApiWrapper::OpenChannel [IP: 0000] ####
#### GHIElectronics.TinyCLR.Devices.Dac.DacChannel::.ctor [IP: 0019] ####
#### GHIElectronics.TinyCLR.Devices.Dac.DacController::OpenChannel [IP: 0005] ####

One second…

Just quick test, look fine, no exception. Make sure the board is SC13048 if use SC13048 library.
And not use PA4 anywhere else.

image

Yes…I found that the pin was initialized earlier.

#### Message: File is not RIFF
#### GHIElectronics.TinyCLR.Drivers.Media.Wav::.ctor [IP: 003d] ####

What can the above error be; is there a bin convertor you recommend

Your file is not the correct format

Would you point me to a bin convertor?
The ones I tried all have the problem

When you save your file, it needs to be mono PCM 8khz.