[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1053
  • Last Modified:

Simple wav playback using alsa

Dear experts.

I'm looking for a simple C/C++ API for playing short WAV file with ALSA as the sound engine. As simple as one line Windows API if possible:
  ...
  PlaySound("mysounf.wav", ..., ... );
  ...

however, any short example will be appreciated.

Thank you.
0
Kocil
Asked:
Kocil
  • 2
1 Solution
 
lynxlupodianCommented:
Alsa has the aplay program with it, that does just that. Check it's source to find what you need.
0
 
KocilAuthor Commented:
I've been doing that, and wonder why it is so complicated ?

0
 
lynxlupodianCommented:
I don't know. Check
http://alsa.opensrc.org/ "For ALSA Software Developers"
maybe something useful is there.

Or go ask on #alsa on irc.freenode.net.
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now