473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

VB.Net & Your Sound Card

1
I'm in a bit of a fix here... I'm programming in VB.Net Express and I'm writeing a media application. I have managed to get it to play MP3 files by using Windows media player DLL's. but i would like to be able to play all sorts of audio files. I beilieve that i must be able to send the sound card some sort of messege to do this. I dunno.

I dont know exactly which way i want to take this , but i want this application to be independent of others, I.E. i dont want the user to have to have WMP installed for it to work.

How do you go about playing such files as Wma's or MP3's?

~Vitus :cool:
Jun 11 '06 #1
1 4045
I'm actually looking for something similar myself. I can however, partially answer your question... I think.

I believe in order for any application to play an audio file other than uncompressed wav's, the computer must either have the correct codec installed, or have a compatible .dll file to decrypt the compression algorithm and turn it into an uncompressed stream which is then passed on to the sound card for modulation/ sound making. So, in order for you to do what you want, you need to get the decryption .dll's of the formats you wish to play: wma, mp3, atrac, etc... At least I think it can be done that way. I'm not sure if the user must have the codecs installed in order for the program to work or if you can just run the codecs from the files. To get a better idea of what actually happens when a media file is played, download "graphedt" (no i for edit). This program allows you to load a file and represents the file as a tile. Then you would load a decryption codec from the installed codecs list which is another tile. Then you load your output hardware as another tile. Each tile has inputs and outputs. The user connects the tiles to form the data flow. If you get everything connected right, click the play button and you should hear music. I've used this program to encrypt video files with audio using FFdshow and FFdencoder. FFdshow has processing capabilities like amplification, eq, and video image editing.

If you need a codec pack for your player, see what you can do with the FFdshow codec if source is available.

Now... what I am wishing to do if someone knows how in standard vb.net if possible, is to play with wav samples to change modulation, pitch, etc... to figure out how digital sound works on computers. How do I load .wav files so I can affect the bytes of each sample, and how do I pass the stream on to the sound card for modulation?
Jul 13 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Peter | last post by:
Hi all, I'm using windows media player as an object in visual basic 6. I have two sound cards in the PC. The default sound card is used for explorer "clicks" and statup / shutdown sounds in...
22
by: The Road To Utopia | last post by:
Here's one for the trolls...a common jibe from them is setting up audio/video hardware under linux. Ok, true story: at work today, someone asked me if I could tell him why his XP Home would play...
4
by: Robert Gravereaux | last post by:
I'm putting together a C# .Net forms project on win2k. The application requires some sort of horn sound. I've never implemented any audio in .Net, so I'm not sure how best to accomplish this. ...
3
by: June Li | last post by:
H I got a problem with detecting sound card with Windows x I use SDK function waveInGetNumDevs() to test if there is a sound card. But even if there is no sound card installed, the function...
0
by: June Li | last post by:
H I got a problem with detecting sound card with Windows xp I am working on an application to test microphone. First I need detect if there is a sound card installed (or integrated audio...
3
by: larry | last post by:
Hi, my friends, My boss asked me to use sound card to do analog to digital conversion for my application. I know when we record sound, sound card changes anolog signal to digital file. I have no...
7
tpgames
by: tpgames | last post by:
I know that an internal sound card has to be one listed as for a specific mother board. However, does this rule apply to external sound cards? I use a satellite A75-s2112 toshiba laptop, intel pent...
3
by: =?Utf-8?B?SlZE?= | last post by:
In my system, i have two sound card installed. I am developing one multimedia application in c# using DirectShow. I want to select particular sound card and play one audio file and, play another...
2
by: lazzypink | last post by:
hi guys! i having a problem in my project which is create a media player and let the user choose the sound card for audio output. Let say i have 2 sound card in my computer, i want to select the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.