Solved

Soundblaster programming...

Posted on 1997-08-04
3
454 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 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
The goal of this video is to provide viewers with basic examples to understand opening and reading files 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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now