diff --git a/_audio_s_p_d_i_f_8h_source.html b/_audio_s_p_d_i_f_8h_source.html
index 562c30df7a..7d5ef92dcb 100644
--- a/_audio_s_p_d_i_f_8h_source.html
+++ b/_audio_s_p_d_i_f_8h_source.html
@@ -192,119 +192,122 @@
155 int sample_rate = cfg.sample_rate * BMC_BITS_FACTOR;
- 156 int bclk = sample_rate * I2S_BITS_PER_SAMPLE * I2S_CHANNELS;
- 157 int mclk = (I2S_BUG_MAGIC / bclk) * bclk;
-
-
- 160 i2s_cfg.sample_rate = sample_rate;
- 161 i2s_cfg.channels = cfg.channels;
- 162 i2s_cfg.i2s_format = I2S_STD_FORMAT;
- 163 i2s_cfg.bits_per_sample = I2S_BITS_PER_SAMPLE;
-
- 165 i2s_cfg.pin_bck = -1;
- 166 i2s_cfg.pin_data = cfg.pin_data;
-
- 168 i2s_cfg.use_apll =
true;
- 169 i2s_cfg.fixed_mclk = mclk;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 185 if (info.bits_per_sample != 16) {
- 186 LOGE(
"Unsupported bits per sample: %d - must be 16!",
- 187 info.bits_per_sample);
-
- 189 if (cfg.bits_per_sample != info.bits_per_sample
- 190 || cfg.channels != info.channels
- 191 || cfg.sample_rate != info.sample_rate
-
- 193 cfg.bits_per_sample = info.bits_per_sample;
- 194 cfg.channels = info.channels;
- 195 cfg.sample_rate = info.sample_rate;
-
-
-
-
-
-
-
-
-
- 207 size_t write(
const uint8_t *src,
size_t size) {
- 208 if (!i2sOn)
return 0;
- 209 const uint8_t *p = src;
-
-
- 212 while (p < (uint8_t *)src + size) {
-
- 214 if (cfg.channels == 2) {
-
- 216 (uint32_t)(((bmc_tab[*p] << 16) ^ bmc_tab[*(p + 1)]) << 1) >> 1;
-
-
-
-
- 221 (uint32_t)(((bmc_tab[*p] << 16) ^ bmc_tab[*(p)]) << 1) >> 1;
-
-
-
-
-
- 227 if (spdif_ptr >= &spdif_buf[SPDIF_BUF_ARRAY_SIZE]) {
-
- 229 ((uint8_t *)spdif_buf)[SYNC_OFFSET] ^= SYNC_FLIP;
-
- 231 i2s.
write((uint8_t *)spdif_buf,
sizeof(spdif_buf));
- 232 spdif_ptr = spdif_buf;
-
-
-
-
-
+
+
+
+
+ 160 int bclk = sample_rate * I2S_BITS_PER_SAMPLE * I2S_CHANNELS;
+ 161 int mclk = (I2S_BUG_MAGIC / bclk) * bclk;
+
+
+ 164 i2s_cfg.sample_rate = sample_rate;
+ 165 i2s_cfg.channels = cfg.channels;
+ 166 i2s_cfg.i2s_format = I2S_STD_FORMAT;
+ 167 i2s_cfg.bits_per_sample = I2S_BITS_PER_SAMPLE;
+
+ 169 i2s_cfg.pin_bck = -1;
+ 170 i2s_cfg.pin_data = cfg.pin_data;
+
+ 172 i2s_cfg.use_apll =
true;
+ 173 i2s_cfg.fixed_mclk = mclk;
+
+ 175 i2sOn = i2s.begin(i2s_cfg);
+
+
+
+
+
+
+
+
+
+
+
+ 188 if (info.bits_per_sample != 16) {
+ 189 LOGE(
"Unsupported bits per sample: %d - must be 16!",
+ 190 info.bits_per_sample);
+
+ 192 if (cfg.bits_per_sample != info.bits_per_sample
+ 193 || cfg.channels != info.channels
+ 194 || cfg.sample_rate != info.sample_rate
+
+ 196 cfg.bits_per_sample = info.bits_per_sample;
+ 197 cfg.channels = info.channels;
+ 198 cfg.sample_rate = info.sample_rate;
+
+
+
+
+
+
+
+
+
+ 210 size_t write(
const uint8_t *src,
size_t size) {
+ 211 if (!i2sOn)
return 0;
+ 212 const uint8_t *p = src;
+
+
+ 215 while (p < (uint8_t *)src + size) {
+
+ 217 if (cfg.channels == 2) {
+
+ 219 (uint32_t)(((bmc_tab[*p] << 16) ^ bmc_tab[*(p + 1)]) << 1) >> 1;
+
+
+
+
+ 224 (uint32_t)(((bmc_tab[*p] << 16) ^ bmc_tab[*(p)]) << 1) >> 1;
+
+
+
+
+
+ 230 if (spdif_ptr >= &spdif_buf[SPDIF_BUF_ARRAY_SIZE]) {
+
+ 232 ((uint8_t *)spdif_buf)[SYNC_OFFSET] ^= SYNC_FLIP;
+
+ 234 i2s.
write((uint8_t *)spdif_buf,
sizeof(spdif_buf));
+ 235 spdif_ptr = spdif_buf;
+
+
-
-
-
-
-
-
- 245 void spdif_buf_init(
void) {
-
-
- 248 uint32_t bmc_mw = BMC_W;
-
- 250 for (i = 0; i < (size_t)SPDIF_BUF_ARRAY_SIZE; i += 2) {
- 251 spdif_buf[i] = bmc_mw ^= BMC_MW_DIF;
-
-
-
-
- 256 using SPDIFStream = SPDIFOutput;
-
-
+
+
+
+
+
+
+
+
+
+ 248 void spdif_buf_init(
void) {
+
+
+ 251 uint32_t bmc_mw = BMC_W;
+
+ 253 for (i = 0; i < (size_t)SPDIF_BUF_ARRAY_SIZE; i += 2) {
+ 254 spdif_buf[i] = bmc_mw ^= BMC_MW_DIF;
+
+
+
+
+ 259 using SPDIFStream = SPDIFOutput;
+
+
-
+
-
+
-
+