0

您能告诉我如何播放 IMX 51 多媒体板的波形文件吗?代码复制自以下链接: http ://www.qnx.org/developers/docs/6.3.2/neutrino/音频/wavec.html

需要给出哪些参数以及应该将波形文件放置在文件系统上的什么位置。

高级感谢麦迪

4

1 回答 1

0

以下应该有效:

wave /full/path/to/wavefile.wav

相同的实用程序存在于您的开发环境中,位于 ${QNX_TARGET}/armle-v7/usr/bin/wave 下,并包含使用信息:

bash-3.2$ use ./wave
wave Options] *

Options:
    -a[card#:]<dev#>   the card & device number to play out on
    -f<frag_size>      requested fragment size
    -v                 verbose
    -c<args>[,args ..] voice matrix configuration
    -n<num_frags>      requested number of fragments
    -p<volume in %>    volume in percent
    -m<mixer name>     string name for mixer input

Args:
    1=<hw_channel_bitmask> hardware channel bitmask for application voice 1
    2=<hw_channel_bitmask> hardware channel bitmask for application voice 2
    3=<hw_channel_bitmask> hardware channel bitmask for application voice 3
    4=<hw_channel_bitmask> hardware channel bitmask for application voice 4

(上面的输出是在 650 SP1 上捕获的。)

于 2013-12-03T07:32:44.307 回答