Web lists-archives.org

Re: [Mingw-users] SNDCTL_DSP_RESET ?




william estrada wrote:

>    I have a suite of programs that are used for Voice Messaging.  I have the
> Linux modules working and now I am trying to port these modules to Windoze.

I'm sorry :-).

> It has not been a joyful experience.

I am not surpised.

>    I can't seem to find a simple example of code to read and write to/from the
> audio device. Not sure if I want to use mci or wave APIs?

In one of my Free Software projects libsndfile 

    http://www.mega-nerd.com/libsndfile

is a demo program called sndfile-play which plays files on Linux (using
either ALSA or OSS), MacOSX and Windows. Have a look at that for 
inspiration.

For a more flexible solution, you may want to look at PortAudio

    http://www.portaudio.com/


> Also need a way to determine if there is input from the console.  Select 
> is not supported for the console in Win32?

I don't think so, but I've avoided doing that sort of stuff on win32.
On Unix I use select a lot, because it works so well and is so 
convienient.

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"The question of whether a computer can think is no more interesting
than the question of whether a submarine can swim." -- edsger dijkstra

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users