Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > A rare problem I think


Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2000, 02:08 PM
aceware
Guest
 
Posts: n/a
Question A rare problem I think


How do I play .PCM sound files (ie. an 8 bit unsigned raw sample) in VB? I'm using VB6.


Reply With Quote
  #2  
Old 09-14-2000, 02:17 PM
BillSoo's Avatar
BillSoo BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: A rare problem I think

Don't really know but here's something from MSDN:

Audio Compression Manager Drivers
The multimedia services of the Microsoft® Win32® application programming interface (API) provide extensible, device-independent audio support. The Audio Compression Manager (ACM) allows an application to convert data between different formats. The ACM is used by the WaveMapper, which automatically converts any wave file (even compressed files) into a format (usually PCM) which can be played by a sound card. In this way, an application can simply "play" a file without having to take its format or whether it is compressed into account. This makes compressed audio completely transparent to the user. Other applications can call the ACM to explicitly perform conversions.

By itself, the ACM is not capable of performing any conversions. Instead, it relies on installable drivers to perform specific conversions. These drivers are called codecs, converters, or filters. (Sometimes the term "codec" is used in a more generic sense, to refer to all three types of ACM drivers.) A codec converts from one format to another; for example, from PCM to MS-ADPCM. A converter converts between different types of the same format; for example; between 44 kHz PCM and 11 kHz PCM. A filter modifies the audio data without changing the format; for example, an echo filter might make a 44 kHz PCM wave file sound different, but it would still be a 44 kHz PCM file.

There are several ACM drivers which are automatically installed with the system. There are drivers which provide support for the compressed formats MS-ADPCM, IMA ADPCM, the GSM 6.10 standard, and the TrueSpeech voice coding format. There is also a PCM converter which converts between 8- and 16-bit PCM, between mono and stereo, and between different sampling frequencies. Other drivers can be installed at any time. The ACM provides API elements which allow an application to install a driver for its process only, preventing other processes from using it.


"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->