用aplay 可以播放wav,用madplay 播放mp3报以上错误并导致重启。



  • MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
    error: frame 0: lost synchronization
    [ 793.960000] ****** wm8960_postinit ******
    [ 793.980000] mtk_dai: ASoC: unmatched rate symmetry: 8000 - 44100
    [ 793.990000] playback free_dma_buffer
    [ 793.990000] ptri2s_config->mmap_index:8
    output: ioctl(SNDCTL_DSP_SPEED): Invalid argument
    Jmi 20:22:22
    用aplay 可以播放wav
    Jmi 20:22:43
    用madplay 播放mp3报以上错误并导致重启。帮忙分析分析


  • administrators

    madplay编译alsa接口的而不是oss接口的,看一下编译配置



  • < > espeak................................................ Speech synthesizer │ │
    │ │ <> faad2............................. Freeware Advanced Audio Decoder player │ │
    │ │ < > forked-daapd........... iTunes (DAAP) server for Apple Remote and AirPlay │ │
    │ │ < > ices..................... ices client for Icecast media streaming servers │ │
    │ │ < > lame................................................................ lame ---- │ │
    │ │ < > lame-lib........................................................ lame-lib │ │
    │ │ <
    > madplay........................... MPEG audio player in fixed point - oss │ │
    │ │ <> madplay-alsa..................... MPEG audio player in fixed point - alsa │ │
    │ │ < > mpc................................... Music Player Daemon Console Client │ │
    │ │ < > mpd-avahi-service.................... Music Player Daemon (Avahi service) │ │
    │ │ < > mpd-mini...................................... Music Player Daemon (mini) │ │
    │ │ < > pianod.............................................. Pandora radio daemon │ │
    │ │ < > pianod-client................................. Pandora radio daemon WebUI │ │
    │ │ < > portaudio.............................. Portable cross-platform audio I/O │ │
    │ │ < > pulseaudio-daemon................................... Network sound server │ │
    │ │ <
    > shairplay...................................................... Shairplay │ │
    │ │ <> shairport............. ShairPort AirPort Express emulator (un-maintained) │ │
    │ │ <
    > shairport-sync..................... iPhone/iTunes compatible audio player │ │
    │ │ <*> shairport_mmap................. ShairPort AirPort Express emulator (mmap) │ │
    │ │ < > shine................................. Super fast fixed-point MP3 encoder │ │
    │ │ < > svox.................................. SVOX PicoTTS text-to-speech engine │ │
    │ │ < > upmpdcli................ A UPnP front-end to MPD, the Music Player Daemon ---- │ │
    │ │ │ │
    │ │

    编译的是这样选择的呀


  • administrators

    │ │ <> madplay-alsa..................... MPEG audio player in fixed point - alsa │ │ 把这个选择上编译重试



  • @mangogeek !0_1537189067331_屏幕快照 2018-09-17 下午8.53.06.png
    是这样选择的呀,搜了下alsa相关的以来都是yes 呀


  • administrators

    对比一下,是我们wiki中发布的固件吗?



  • 对呀 https://github.com/widora/openwrt_widora 这个最新的 之前是可以的 后来fbtft出错了 把tbtft整好了,声音就不行了,不知道是不是与内核有关联



  • 可以了,全部重新来一遍就可以了,


  • administrators

    @tongjinlv 解决了就好



  • key_build.pub 这个文件是啥用呀,是删掉了这个文件导致的