quiet sound and "I2S DAC not running"
本帖最后由 terefere 于 2022-8-12 05:03 编辑I solder 0,5W 8R speaker and I have two problem.
1. I change button sound from buzzer to speaker, it works but sound is very quiet. Volume is set to 100
2. I add button who call play_sound("3:/sounds/roadruner.wav")
I read that path wull be 3:/ but when bootloader burn this firmware then I see that it land at A:/ Which patch are correct.
3. Sound play not work, I run debuger and I get info about disconected DAC, it's normall?
22:46:26.595 DBG smtkAudioMgrSetVolume=100
22:46:26.598 DBG set NetworkError 0 #line 2528
22:46:26.598 DBG I2S# DAC is 'NOT' running, skip deinit DAC !
22:46:26.658 DBG set NetworkError 0 #line 2528
22:46:26.658 DBG I2S# DAC is 'NOT' running, skip deinit DAC !
4. bootloader show that is burned several key sound also (key1 key2 etc). It's possible to chose it?. Is some easy way to add own button sound, or I need to add code in LUA ( in on_control_notify function)
first question 2、The internal drive letter of the M series screen is "3:/", and the internal drive letter of the IoT screen is "A:/"
3、The virtual screen does not support playing audio, you need to download the project to the physical screen to test
4、Currently, only one key sound can be set on the screen, all keys will use this sound if you set, and cannot be set individually 本帖最后由 terefere 于 2022-8-12 14:54 编辑
If I want to change file in private/sounds then it look's like at compilation time VTFT want to replace this file. Ask me for access to this folder, have some problem with copy file and finally I must restart my computer because DCIOT.PKG file are corrupted and bootloader show CRC error.
I try to another attemp. I disable button sound in project settings and in button notify I try to play my sound. When program comes to this place screen was restart.File patch look's good, file exist in folder... I have no idea. It's strange because I not made any change in code from yesterday- only touch private/sounds folder
BTW this wave file have ~200kB and I use play_sound("A:/sounds/roadruner.wav")
terefere 发表于 2022-8-12 14:52
If I want to change file in private/sounds then it look's like at compilation time VTFT want to repl ...
When you replaced the "key1.wav" file, you must also rename your sound file to "key1.wav". If it doesn't work, you can try changing the sound file to mp3 format Of course that I change my sound to key.wav. Ori file is also .wav so I dont't think so that change to mp3 will help.
Anyway. If VTFT put file to private/sound folder each time when I compile it, then I need to change file in place from they get it.
页:
[1]