I can so far find Nothing whatsoever that will allow me to easily play a wav sound in a console app in linux. It's like I have to create my own audio player to play a half second clip of a cat meowing. Does anyone have any experience? I'd really appreciate it.
Rearden
0
Light Poster
Recommended Answers
Jump to PostI don't have a Linux Box, but if there is a program that plays wave files you could call it with system(). Something like
system("WavePlayer cat.wav")
Jump to Post>I dont think you can use the "System" command in linux.
I don't know about the "System" command, but the system function is standard C, declared in stdlib.h.
Jump to Post>I think it's cheating.
For theorists, cheating is an option. For the rest of us, it's a necessity. :)
Jump to Post>The system call also makes it unportable by default.
That's irrelevant. You're trying to do something inherently non-portable, so you'll be using a non-portable solution no matter how you look at it. The trick is to separate the non-portable parts from the portable parts so as to make porting the …
All 14 Replies
Sauce
0
Junior Poster in Training
Rearden
0
Light Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Sauce
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Rearden
0
Light Poster
Sauce
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Rearden
0
Light Poster
Narue
5,707
Bad Cop
Team Colleague
Sauce
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Sauce
0
Junior Poster in Training
Rearden
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.