• C

Soundblaster programming...

Hello,
    I need some help in soundcard/soundblaster programming. Can Soundblaster be used to encode voice in mu-law/A-law/PCM? In full-duplex? And where can I find such libraries or DLL (for Win95)? Are there commands similar to those on Unix/Linux OS's read/write? I need it to intereface with a Java application?
   Thanks.
chantmAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

alexxxCommented:
Usually a sound card adds several logically independant devices:1. waveform output device is used to output digitized data to the sound card (whatever format is used: PCM, ADPCM, mu-law, etc) - playback;2. waveform input device is used to input analog data from the sound card (whatever format is used: PCM, ADPCM, mu-law, etc) - recording;3. mixer device controls sound card topology;4. MIDI device for playing music in MIDI format;From what you write I understand you want APIs for the first two of them (waveform input/output). There are number of APIs you can use to do it in Windows95 + new Microsoft APIs which are distributed separatly (they are not a part of the Windows95 installation). These last ones will become standard in future releases of Microsoft Windows and the present APIs will be supported too (legacy APIs). Here is the list of all these APIs:Legacy APIs:1. DOS SoundBlaster programming - only for DOS programs;2. MCI (Multimedia Control Interface) - high level API;3. wave API (Microsoft Low Level Audio API) - low level API;4. ACM (Audio Compression Manager) - API for conversion between different wave formats;New APIs:1. DirectSound - targeted for games;
2. ActiveMovie - for usual appliactions;Which of them to use depends on many aspects. If you can be more specific about what you want to do I can answer your further questions. All the API specs are distributed by Microsoft with the MSDN (Microsoft Developer Network) subscribtion.alexxx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chantmAuthor Commented:
 I am writting a Java application currently on Solaris that encode voice in mu-law and sends them across the network. Since Java is platform independent, to run it on a PC would requires only a PC's DLL (I think), if I can't find a DLL thats conforms to the UNIX/Linux read/write, that might have to try to write one in C. All I need is to able to read and write a array[byte] to the device.
      Thanks.
0
chantmAuthor Commented:
Hello,
      I am current writting a Java Application on Solaris that encode voice in mu-law and sends them across the network. Since Java is independent of platform, and to port it to PC, Java only needs the required DLL (I think) before it can be run on Win95. Is there any DLL or other libraries that conform to UNIX/Linux read/write for the <sys/audio>. All I need is to be able to set recording/playing format/gain and read/write to the soundcard.
      Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.