How to set 32 bit per sample? #18
-
Hi, the DAC I use (TAS5713) requires a high clock rate for the MCLK as i learned from the squeezelite project.
Doing this based of from the sample code provided here
Is not sufficient to convince the lib to start 32 bit sample stream, it always falls back to 16. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The output is configured by the information by the server, so if you set it to 32 bits it will be overwritten. If you want resample on the client side to change the format from 16 to 32 bits, Just wrap the output class (e.g. I2SStream) with a FromatConverterStream or better a NumberFormatConverterStream and provide the converterstream as output class to the snap client. Don't forget to configure the converter class by defining the input and output format and the output format of i2s Further info can be fund in the Wiki of the AudioTools. Another option would be to change the format in the snapserver.conf. Then you will not have to change anything on the client side. |
Beta Was this translation helpful? Give feedback.
-
I was testing today the resampling from 16 to 32 for a ES9018k2m DAC which has the same problems and I had to commit a couple of corrections to the audio-tools to make this work. Here is the example that I used for testing |
Beta Was this translation helpful? Give feedback.
-
I don't get any errors and your error messages do not make any sense to me: dec extends from Print and url from AudioStream, so the second constructor should be valid! Even the first should work since AudioStream extends from Stream... There must be something completely wrong with your installation of the AudioTools library Did you really use the example w/o any changes ? |
Beta Was this translation helpful? Give feedback.
The output is configured by the information by the server, so if you set it to 32 bits it will be overwritten.
If you want resample on the client side to change the format from 16 to 32 bits, Just wrap the output class (e.g. I2SStream) with a FromatConverterStream or better a NumberFormatConverterStream and provide the converterstream as output class to the snap client. Don't forget to configure the converter class by defining the input and output format and the output format of i2s
Further info can be fund in the Wiki of the AudioTools.
Another option would be to change the format in the snapserver.conf. Then you will not have to change anything on the client side.