no PWM out is working. #1846
-
on esp32-s3, no matter the board version , 2 or 3.0.7 , pwm resets and makes error. |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 6 replies
-
My first guess would be that you used a sample rate which is too high or you selected some pins that are not supported. |
Beta Was this translation helpful? Give feedback.
-
at first, i had a program from a year ago that was working. but now it didn't. i changed many things to no vial. then i tested an example, but the exact same thing happened. it constantly resets. i did not changed anything in example. not even the pin or samplerate. |
Beta Was this translation helpful? Give feedback.
-
You still need to do a proper error analysis! I just tried the generator-pwm example sketch on a regular ESP32 and S3 with the latest ESP32 3.1 Arduino release and could not reproduce your issues. ps Just upgrading the board version w/o installing the latest libraries is asking for trouble... |
Beta Was this translation helpful? Give feedback.
-
@pschatzmann , sorry for delayed answer, i don't feel very good. for the libraries, i always check your updated work, few times, every day.
|
Beta Was this translation helpful? Give feedback.
-
@pschatzmann , sorry for delayed answer, i don't feel very good.
@swissqr . hi! what a great idea! why i didn't think about it?
but to make the tests and debugging, here it is:
for the libraries, i always check your updated work, few times, every day.
as for Arduino libs, all are updated except ArduinoJson that you are not using.
----
as for the code, as i said, it is your example exactly without change, but again, it is not just pwm, it is mp3 pwm. `streams-memory_mp3-pwm` sample.
`arduino-audio-tools-main\examples\examples-stream\streams-memory_mp3-pwm`
----
so, i tried to test again. but with ESP32 and no psram.
instantly crashes.
```
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=12, channel=0, frequency=312500, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 12
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x400838a1:0x3ffb1f80 0x40089f0d:0x3ffb1fa0 0x4008efd1:0x3ffb1fc0 0x400d4274:0x3ffb20f0 0x400d4325:0x3ffb2110 0x400d4237:0x3ffb2160 0x40123505:0x3ffb2180 0x400d2ec7:0x3ffb21a0 0x400d346d:0x3ffb21c0 0x400d34c7:0x3ffb21e0 0x400d65f7:0x3ffb2200 0x400d6822:0x3ffb2220 0x400d692b:0x3ffb2260 0x400dc665:0x3ffb2290
ELF file SHA256: baf39c9e2668208f
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=12, channel=0, frequency=312500, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 12
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x400838a1:0x3ffb1f80 0x40089f0d:0x3ffb1fa0 0x4008efd1:0x3ffb1fc0 0x400d4274:0x3ffb20f0 0x400d4325:0x3ffb2110 0x400d4237:0x3ffb2160 0x40123505:0x3ffb2180 0x400d2ec7:0x3ffb21a0 0x400d346d:0x3ffb21c0 0x400d34c7:0x3ffb21e0 0x400d65f7:0x3ffb2200 0x400d6822:0x3ffb2220 0x400d692b:0x3ffb2260 0x400dc665:0x3ffb2290
```
so, for my own sanity, i tried the `streams-generator-pwm` sample. the old ESP32 ! no psram.
the only change is Warning to Info to see whats what. the Warning didn't crash.
well it worked for geny! not mp3.
```
[I] SoundGenerator.h : 165 - SineWaveGenerator::begin(channels=1, sample_rate=8000, frequency=493.88)
[I] SoundGenerator.h : 149 - bool audio_tools::SineWaveGenerator<T>::begin() [with T = short int]
[I] AudioTypes.h : 130 - SoundGenerator: sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] Buffers.h : 376 - resize: 2
[I] SoundGenerator.h : 192 - setFrequency: 493.88
[I] SoundGenerator.h : 193 - active: true
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=12, channel=0, frequency=312500, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 12
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
```
-----
so i tried `streams-generator-pwm` with esp32-s3 with 2MB psram to see if it make
but i had to add this:
`config.start_pin = 38;`
since my output pin is pin 38.
and it blow my ears! the `streams-generator-pwm` does work great. so, i am not mad!
-----
now, back to `streams-memory_mp3-pwm` sample:
no matter with or without `config.start_pin = 38;` , i get instantly crash when it tries to do mp3 file.
```
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x403773f6:0x3fceb980 0x4037ab25:0x3fceb9a0 0x40380475:0x3fceb9c0 0x42003e87:0x3fcebaf0 0x42003f39:0x3fcebb10 0x42003e47:0x3fcebb60 0x4202e5c1:0x3fcebb80 0x42002a7b:0x3fcebba0 0x42003049:0x3fcebbc0 0x420030a3:0x3fcebbe0 0x42006283:0x3fcebc00 0x420064ae:0x3fcebc20 0x420065c3:0x3fcebc60 0x4200c3ed:0x3fcebc90
ELF file SHA256: 24e4e939fb684d1f
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
```
to make a better debug, in my old code, it waits until receive data from WiFi, then crashes.
it just waits for the data to be received and then starts decoding, and that's when it crashes.
```
AudioInfo info(8000, 1, 16);
#define my_pin_pwm1_is 38
WiFiClient my_clients;
PWMAudioOutput pwm1;
EncodedAudioStream decoders1(&pwm1, new my_code_is_new);
StreamCopy copier1(decoders1, my_clients);
server.begin();
auto config1 = pwm1.defaultConfig();
config1.start_pin = my_pin_pwm1_is;
config1.copyFrom(info);
config1.resolution = 8;
pwm1.begin(config1);
pwm1.begin(config1);
decoders1.begin();
```
it crash:
```
IP address: 192.168.1.8
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] StreamCopy.h : 54 - buffer_size=1024
[I] StreamCopy.h : 172 - StreamCopy::copy 158 -> 158 -> 158 bytes - in 1 hops
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x40378146:0x3fceb960 0x4037dfb5:0x3fceb980 0x40383ffd:0x3fceb9a0 0x420058a7:0x3fcebad0 0x4200595d:0x3fcebaf0 0x42005867:0x3fcebb40 0x420916d9:0x3fcebb60 0x42004517:0x3fcebb80 0x42004a21:0x3fcebba0 0x42004a7f:0x3fcebbc0 0x42009122:0x3fcebbe0 0x4200935e:0x3fcebc00 0x4200a981:0x3fcebc40 0x42018d99:0x3fcebc90
```
but if i change the buffer size like this:
```
auto config1 = pwm1.defaultConfig();
config1.start_pin = my_pin_pwm1_is;
config1.copyFrom(info);
config1.pwm_frequency = 20000;
config1.resolution = 8; // must be between 8 and 11 -> drives pwm frequency (8 is default)
config1.buffer_size = 1024*4;
```
i get this:
```
IP address: 192.168.1.8
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 4096 bytes
[I] Buffers.h : 376 - resize: 16384
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 4096
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 20000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 16384
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] StreamCopy.h : 54 - buffer_size=1024
[I] StreamCopy.h : 172 - StreamCopy::copy 158 -> 158 -> 158 bytes - in 1 hops
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
```
but it doesn't work either. there is no audio.
…----
and with that, we get back to the start that i said the pwm with mp3 crashes.
--
Reply to this email directly or view it on GitHub:
#1846 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--------------------------------------------------
@pschatzmann , sorry for delayed answer, i don't feel very good.
@swissqr . hi! what a great idea! why i didn't think about it?
but to make the tests and debugging, here it is:
for the libraries, i always check your updated work, few times, every day.
as for Arduino libs, all are updated except ArduinoJson that you are not using.
as for the code, as i said, it is your example exactly without change, but again, it is not just pwm, it is mp3 pwm. streams-memory_mp3-pwm sample.
arduino-audio-tools-main\examples\examples-stream\streams-memory_mp3-pwm
so, i tried to test again. but with ESP32 and no psram.
instantly crashes.
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=12, channel=0, frequency=312500, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 12
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x400838a1:0x3ffb1f80 0x40089f0d:0x3ffb1fa0 0x4008efd1:0x3ffb1fc0 0x400d4274:0x3ffb20f0 0x400d4325:0x3ffb2110 0x400d4237:0x3ffb2160 0x40123505:0x3ffb2180 0x400d2ec7:0x3ffb21a0 0x400d346d:0x3ffb21c0 0x400d34c7:0x3ffb21e0 0x400d65f7:0x3ffb2200 0x400d6822:0x3ffb2220 0x400d692b:0x3ffb2260 0x400dc665:0x3ffb2290
ELF file SHA256: baf39c9e2668208f
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=12, channel=0, frequency=312500, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 12
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x400838a1:0x3ffb1f80 0x40089f0d:0x3ffb1fa0 0x4008efd1:0x3ffb1fc0 0x400d4274:0x3ffb20f0 0x400d4325:0x3ffb2110 0x400d4237:0x3ffb2160 0x40123505:0x3ffb2180 0x400d2ec7:0x3ffb21a0 0x400d346d:0x3ffb21c0 0x400d34c7:0x3ffb21e0 0x400d65f7:0x3ffb2200 0x400d6822:0x3ffb2220 0x400d692b:0x3ffb2260 0x400dc665:0x3ffb2290
so, for my own sanity, i tried the streams-generator-pwm sample. the old ESP32 ! no psram.
the only change is Warning to Info to see whats what. the Warning didn't crash.
well it worked for geny! not mp3.
[I] SoundGenerator.h : 165 - SineWaveGenerator::begin(channels=1, sample_rate=8000, frequency=493.88)
[I] SoundGenerator.h : 149 - bool audio_tools::SineWaveGenerator::begin() [with T = short int]
[I] AudioTypes.h : 130 - SoundGenerator: sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] Buffers.h : 376 - resize: 2
[I] SoundGenerator.h : 192 - setFrequency: 493.88
[I] SoundGenerator.h : 193 - active: true
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=12, channel=0, frequency=312500, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 12
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
so i tried streams-generator-pwm with esp32-s3 with 2MB psram to see if it make
but i had to add this:
config.start_pin = 38;
since my output pin is pin 38.
and it blow my ears! the streams-generator-pwm does work great. so, i am not mad!
now, back to streams-memory_mp3-pwm sample:
no matter with or without config.start_pin = 38; , i get instantly crash when it tries to do mp3 file.
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x403773f6:0x3fceb980 0x4037ab25:0x3fceb9a0 0x40380475:0x3fceb9c0 0x42003e87:0x3fcebaf0 0x42003f39:0x3fcebb10 0x42003e47:0x3fcebb60 0x4202e5c1:0x3fcebb80 0x42002a7b:0x3fcebba0 0x42003049:0x3fcebbc0 0x420030a3:0x3fcebbe0 0x42006283:0x3fcebc00 0x420064ae:0x3fcebc20 0x420065c3:0x3fcebc60 0x4200c3ed:0x3fcebc90
ELF file SHA256: 24e4e939fb684d1f
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
to make a better debug, in my old code, it waits until receive data from WiFi, then crashes.
it just waits for the data to be received and then starts decoding, and that's when it crashes.
AudioInfo info(8000, 1, 16);
#define my_pin_pwm1_is 38
WiFiClient my_clients;
PWMAudioOutput pwm1;
EncodedAudioStream decoders1(&pwm1, new my_code_is_new);
StreamCopy copier1(decoders1, my_clients);
server.begin();
auto config1 = pwm1.defaultConfig();
config1.start_pin = my_pin_pwm1_is;
config1.copyFrom(info);
config1.resolution = 8;
pwm1.begin(config1);
pwm1.begin(config1);
decoders1.begin();
it crash:
IP address: 192.168.1.8
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] StreamCopy.h : 54 - buffer_size=1024
[I] StreamCopy.h : 172 - StreamCopy::copy 158 -> 158 -> 158 bytes - in 1 hops
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
assert failed: void libhelix::MP3DecoderHelix::provideResult(MP3FrameInfo&) MP3DecoderHelix.h:154 (written == toWrite)
Backtrace: 0x40378146:0x3fceb960 0x4037dfb5:0x3fceb980 0x40383ffd:0x3fceb9a0 0x420058a7:0x3fcebad0 0x4200595d:0x3fcebaf0 0x42005867:0x3fcebb40 0x420916d9:0x3fcebb60 0x42004517:0x3fcebb80 0x42004a21:0x3fcebba0 0x42004a7f:0x3fcebbc0 0x42009122:0x3fcebbe0 0x4200935e:0x3fcebc00 0x4200a981:0x3fcebc40 0x42018d99:0x3fcebc90
but if i change the buffer size like this:
auto config1 = pwm1.defaultConfig();
config1.start_pin = my_pin_pwm1_is;
config1.copyFrom(info);
config1.pwm_frequency = 20000;
config1.resolution = 8; // must be between 8 and 11 -> drives pwm frequency (8 is default)
config1.buffer_size = 1024*4;
i get this:
IP address: 192.168.1.8
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 124 - decimation: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 4096 bytes
[I] Buffers.h : 376 - resize: 16384
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 4096
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 20000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 16384
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] StreamCopy.h : 54 - buffer_size=1024
[I] StreamCopy.h : 172 - StreamCopy::copy 158 -> 158 -> 158 bytes - in 1 hops
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
but it doesn't work either. there is no audio.
and with that, we get back to the start that i said the pwm with mp3 crashes.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @github.com>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#1846 (comment)",
"url": "#1846 (comment)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Errors:
The field 'iban' must not be empty
The field 'CreditorName' must not be empty
The field 'CreditorAddressLine1' must not be empty
The field 'CreditorAddressLine2' must not be empty
|
Beta Was this translation helpful? Give feedback.
-
It seems that the DriverPWMBase was limiting the write size to 1024, but the decoder was providing more data than this.
I committed a correction.
…--
Reply to this email directly or view it on GitHub:
#1846 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--------------------------------------------------
It seems that the DriverPWMBase was limiting the write size to 1024, but the decoder was providing more data than this.
I committed a correction.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @github.com>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#1846 (reply in thread)",
"url": "#1846 (reply in thread)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Errors:
The field 'iban' must not be empty
The field 'CreditorName' must not be empty
The field 'CreditorAddressLine1' must not be empty
The field 'CreditorAddressLine2' must not be empty
|
Beta Was this translation helpful? Give feedback.
-
now it doesn't reset, but no audio is playing. and in
why is |
Beta Was this translation helpful? Give feedback.
-
now it doesn't reset, but no audio is playing.
and in `streams-memory_mp3-pwm` or any sample for pwm mp3 we have :
```
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 132 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 88 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 151 - Timer freq: 8000 hz
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
```
why is ` frequency=156250` ? and `Buffer available for write: 4096` ? i don't understand it.
…--
Reply to this email directly or view it on GitHub:
#1846 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--------------------------------------------------
now it doesn't reset, but no audio is playing.
and in streams-memory_mp3-pwm or any sample for pwm mp3 we have :
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 132 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 88 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 151 - Timer freq: 8000 hz
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
why is frequency=156250 ? and Buffer available for write: 4096 ? i don't understand it.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @github.com>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#1846 (comment)",
"url": "#1846 (comment)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Errors:
The field 'iban' must not be empty
The field 'CreditorName' must not be empty
The field 'CreditorAddressLine1' must not be empty
The field 'CreditorAddressLine2' must not be empty
|
Beta Was this translation helpful? Give feedback.
-
just as a reminder, i am using ESP32-S3.
|
Beta Was this translation helpful? Give feedback.
-
just as a reminder, i am using ESP32-S3.
so i decided to check other builds and configs too:
`arduino-audio-tools-1.0.0` crashes.
------
in `arduino-audio-tools-0.9.6` there is no `out.start_pin = 38;` , so i decided to change `AudioConfig.h` setting for `#define PIN_PWM_START 38` .
i get error: `'class libhelix::MP3DecoderHelix' has no member named 'setDelay' mp3->setDelay(CODEC_DELAY_MS);`
the `arduino-libhelix-v.0.8.3` doesn't compile.
`arduino-libhelix-v.0.8.2` doesn't compile.
`arduino-libhelix-0.8.1` compiled. but no audio.
```
[I] PWMAudioESP32.h : 81 - -> ledcSetup: frequency=312500 / resolution=8
E (712) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=128
[I] PWMAudioESP32.h : 81 - -> ledcSetup: frequency=312500 / resolution=8
E (808) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=128
[I] PWMAudioESP32.h : 91 - pin0: 38
[I] PWMAudioESP32.h : 104 - -> timer counter is 907
E (825) timer_group: timer_isr_callback_add(236): register interrupt service failed
```
at this point, i thought i am going mad!
so i updated all libs and i tried `streams-generator-pwm` once again. but it still works. good audio.
-------------
at that point i got bored! and tried the pcm audio.
so i tried `streams-memory_wav-pwm` sample. no changes to code.
```
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] CodecWAV.h : 56 - WAVHeader::begin: 200
[I] CodecWAV.h : 211 - WAVHeader sound_pos: 44
[I] CodecWAV.h : 212 - WAVHeader channels: 1
[I] CodecWAV.h : 213 - WAVHeader bits_per_sample: 16
[I] CodecWAV.h : 214 - WAVHeader sample_rate: 8000
[I] CodecWAV.h : 215 - WAVHeader format: 1
[I] CodecWAV.h : 420 - WAV sample_rate: 8000
[I] CodecWAV.h : 421 - WAV data_length: 4294967295
[I] CodecWAV.h : 422 - WAV is_streamed: 1
[I] CodecWAV.h : 424 - WAV is_valid: false
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
```
funny! there is no audio.
then i changed it to play` knghtsng_wav`. no audio.
then i started to change `AudioInfo info`.
and no audio. sometimes i get some noise only.
…--
Reply to this email directly or view it on GitHub:
#1846 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--------------------------------------------------
just as a reminder, i am using ESP32-S3.
so i decided to check other builds and configs too:
arduino-audio-tools-1.0.0 crashes.
in arduino-audio-tools-0.9.6 there is no out.start_pin = 38; , so i decided to change AudioConfig.h setting for #define PIN_PWM_START 38 .
i get error: 'class libhelix::MP3DecoderHelix' has no member named 'setDelay' mp3->setDelay(CODEC_DELAY_MS);
the arduino-libhelix-v.0.8.3 doesn't compile.
arduino-libhelix-v.0.8.2 doesn't compile.
arduino-libhelix-0.8.1 compiled. but no audio.
[I] PWMAudioESP32.h : 81 - -> ledcSetup: frequency=312500 / resolution=8
E (712) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=128
[I] PWMAudioESP32.h : 81 - -> ledcSetup: frequency=312500 / resolution=8
E (808) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=128
[I] PWMAudioESP32.h : 91 - pin0: 38
[I] PWMAudioESP32.h : 104 - -> timer counter is 907
E (825) timer_group: timer_isr_callback_add(236): register interrupt service failed
at this point, i thought i am going mad!
so i updated all libs and i tried streams-generator-pwm once again. but it still works. good audio.
at that point i got bored! and tried the pcm audio.
so i tried streams-memory_wav-pwm sample. no changes to code.
[I] AudioTypes.h : 130 - sample_rate: 8000 / channels: 1 / bits_per_sample: 16
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 340 - Decimation factor: 1
[I] PWMAudioBase.h : 133 - ->Allocating new buffer 4 * 1024 bytes
[I] Buffers.h : 376 - resize: 4096
[I] PWMAudioBase.h : 87 - sample_rate: 8000
[I] PWMAudioBase.h : 88 - channels: 1
[I] PWMAudioBase.h : 89 - bits_per_sample: 16
[I] PWMAudioBase.h : 90 - buffer_size: 1024
[I] PWMAudioBase.h : 91 - buffer_count: 4
[I] PWMAudioBase.h : 92 - pwm_frequency: 30000
[I] PWMAudioBase.h : 93 - resolution: 8
[I] PWMAudioESP32.h : 90 - setupPWM: pin=38, channel=0, frequency=156250, resolution=8
[I] PWMAudioESP32.h : 97 - pin0: 38
[I] PWMAudioBase.h : 154 - ->Buffer available: 0
[I] PWMAudioBase.h : 155 - ->Buffer available for write: 4096
[I] PWMAudioBase.h : 156 - ->is_timer_started: false
[I] CodecWAV.h : 56 - WAVHeader::begin: 200
[I] CodecWAV.h : 211 - WAVHeader sound_pos: 44
[I] CodecWAV.h : 212 - WAVHeader channels: 1
[I] CodecWAV.h : 213 - WAVHeader bits_per_sample: 16
[I] CodecWAV.h : 214 - WAVHeader sample_rate: 8000
[I] CodecWAV.h : 215 - WAVHeader format: 1
[I] CodecWAV.h : 420 - WAV sample_rate: 8000
[I] CodecWAV.h : 421 - WAV data_length: 4294967295
[I] CodecWAV.h : 422 - WAV is_streamed: 1
[I] CodecWAV.h : 424 - WAV is_valid: false
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] PWMAudioESP32.h : 61 - virtual void audio_tools::PWMDriverESP32::startTimer()
[I] AudioTimerESP32.h : 146 - Timer every: 125 us
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 172 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
funny! there is no audio.
then i changed it to play knghtsng_wav. no audio.
then i started to change AudioInfo info.
and no audio. sometimes i get some noise only.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @github.com>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#1846 (comment)",
"url": "#1846 (comment)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Errors:
The field 'iban' must not be empty
The field 'CreditorName' must not be empty
The field 'CreditorAddressLine1' must not be empty
The field 'CreditorAddressLine2' must not be empty
|
Beta Was this translation helpful? Give feedback.
-
I don't keep any record which AudioTools version goes with which libhelix version. I just make sure that the latest versions are compatible with each other.
In the old ESP32 API the PWM frequency was driven by the number of bits and there was some documentation how this relates.
I thiink this has changed: I guess I will let the user configure both and hope that they select some meaningful values.
I will have a closer look tomorrow...
…--
Reply to this email directly or view it on GitHub:
#1846 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--------------------------------------------------
I don't keep any record which AudioTools version goes with which libhelix version. I just make sure that the latest versions are compatible with each other.
In the old ESP32 API the PWM frequency was driven by the number of bits and there was some documentation how this relates.
I thiink this has changed: I guess I will let the user configure both and hope that they select some meaningful values.
I will have a closer look tomorrow...
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @github.com>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#1846 (reply in thread)",
"url": "#1846 (reply in thread)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Errors:
The field 'iban' must not be empty
The field 'CreditorName' must not be empty
The field 'CreditorAddressLine1' must not be empty
The field 'CreditorAddressLine2' must not be empty
|
Beta Was this translation helpful? Give feedback.
-
thank you. so i will do the test with pin5. but i don't understand why generator is working. i will check.
…--
Reply to this email directly or view it on GitHub:
#1846 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--------------------------------------------------
thank you. so i will do the test with pin5. but i don't understand why generator is working. i will check.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @github.com>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#1846 (reply in thread)",
"url": "#1846 (reply in thread)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Errors:
The field 'iban' must not be empty
The field 'CreditorName' must not be empty
The field 'CreditorAddressLine1' must not be empty
The field 'CreditorAddressLine2' must not be empty
|
Beta Was this translation helpful? Give feedback.
-
so, i connected to pin 5, and it worked! with or without psram, it worked. |
Beta Was this translation helpful? Give feedback.
-
Closed #1846 as resolved.
…--
Reply to this email directly or view it on GitHub:
#1846
You are receiving this because you were mentioned.
Message ID: ***@***.***>
--------------------------------------------------
Closed #1846 as resolved.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @github.com>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#1846",
"url": "#1846",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Errors:
The field 'iban' must not be empty
The field 'CreditorName' must not be empty
The field 'CreditorAddressLine1' must not be empty
The field 'CreditorAddressLine2' must not be empty
|
Beta Was this translation helpful? Give feedback.
-
although if i use: |
Beta Was this translation helpful? Give feedback.
-
now i found out if i send the exact info, like |
Beta Was this translation helpful? Give feedback.
-
I noticed that the automatic notification of the audio information from the mp3 file was broken. I committed the following:
|
Beta Was this translation helpful? Give feedback.
I noticed that the automatic notification of the audio information from the mp3 file was broken.
I committed the following: