Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Soundblaster programming...

Posted on 1997-08-04
3
Medium Priority
?
465 Views
Last Modified: 2008-03-10
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.
0
Comment
Question by:chantm
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
alexxx earned 600 total points
ID: 1252840
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
 

Author Comment

by:chantm
ID: 1252841
 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
 

Author Comment

by:chantm
ID: 1252842
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question