Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Internally, I’d like to muck with playing files in the embedded Linux – how?

0
Posted

Internally, I’d like to muck with playing files in the embedded Linux – how?

0

The linux playsound program will play a wav file and there is a test.mp3 in the /usr/share/mfg directory. You can try to play this file by cd /usr/share/mfgtest cp test.mp3 /dev/mp3 If you hear a trumpet it worked. Other bitrate files may or may not work. Devices probably have to be set up with ioctl calls. Getting a little more sophisticated, you can use the player’s TCP control socket to force the MP3 device closed so that your script will work (sending “dev_close” should do that). If it is useful to you, the player can also mix PCM and MPEG layer 2 audio, so if you have a WAV file and an MPEG1 layer 2 audio clip, you can send them to /dev/dsp and /dev/mp2 simultaneously. You’ll probably need a small program for the WAV file, though, in order to read the frequency, bits per sample, and number of channels to set up /dev/dsp with the Linux ioctl() call. Post your ideas to http://p097.ezboard.com/fprismiqunofficialforumfrm7 and the community may help.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123