Solved

Soundblaster programming...

Posted on 1997-08-04
3
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
alexxx earned 200 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

Industry Leaders: 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 is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

705 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