Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 135,943 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,732 people online right now. Registration is fast and FREE... Join Now!




soundtest

 
Reply to this topicStart new topic

soundtest

pgfdbug
17 May, 2008 - 07:59 AM
Post #1

New D.I.C Head
*

Joined: 14 Apr, 2008
Posts: 5

I am using this as a helper program to call sounds through cygwin. Problem is its not calling sounds. Can anyone provide a little guidance. I am self taught so go slow in explination.

CODE
#include <stdio.h>



main
    (int argc, char **argv)

{
    
    char soundtest[128];

    
    
    sprintf(soundtest, "cat %s > /dev/dsp", argv[1]);

    

    system(soundtest);

    

    return;


}


User is offlineProfile CardPM
+Quote Post

Ambercroft
RE: Soundtest
18 May, 2008 - 02:54 PM
Post #2

D.I.C Head
Group Icon

Joined: 5 Jan, 2007
Posts: 107



Thanked: 3 times
Dream Kudos: 25
My Contributions
I added
CODE

#include <stdlib.h>


then the mp3 file I entered produced lots of white crazy.gif noise. I need to add a codec to hear reason icon_up.gif

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:45AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month