广州大彩串口屏论坛_大彩开发者交流论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 5129|回复: 5

quiet sound and "I2S DAC not running"

[复制链接]

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
发表于 2022-8-12 05:01:36 | 显示全部楼层 |阅读模式
本帖最后由 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?
  1. 22:46:26.595         DBG        smtkAudioMgrSetVolume=100
  2. 22:46:26.598         DBG        [Audio mgr] set NetworkError 0 #line 2528
  3. 22:46:26.598         DBG        I2S# DAC is 'NOT' running, skip deinit DAC !
  4. 22:46:26.658         DBG        [Audio mgr] set NetworkError 0 #line 2528
  5. 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)
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12553
发表于 2022-8-12 08:46:36 | 显示全部楼层
first question

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12553
发表于 2022-8-12 08:55:08 | 显示全部楼层
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
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
 楼主| 发表于 2022-8-12 14:52:50 | 显示全部楼层
本帖最后由 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
  1. play_sound("A:/sounds/roadruner.wav")
复制代码


回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12553
发表于 2022-8-12 16:26:25 | 显示全部楼层
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
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
 楼主| 发表于 2022-8-12 18:14:29 | 显示全部楼层
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|广州大彩串口屏论坛_大彩开发者交流论坛

GMT+8, 2024-5-9 06:29 , Processed in 0.061727 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表