| Main > Software Forum |
| Sound and Programming in VB6 |
| << < (3/8) > >> |
| Howard_Casto:
--- Quote from: headkaze on October 22, 2006, 06:05:42 am ---I'm not quite sure if he wants to manipulate the sound before it comes out of the speakers or just graphically display the audio. But if he wants to show the low, mid and high ranges of audio all you need is the raw audio data. How does anyone do any visualization? It's all with the raw audio data. The problem is the maths behind doing such things becomes quite complex. Using FFT and other fun maths to process buffered audio and output it in a meaningful way is not a walk in the park. --- End quote --- Well yeah that is true in any case, but libraries can sample the data of the stream playing rather than the hacked up method of "recording" the audio and sampling that data. The problem with the old school method you linked to is the audio isn't normalized, meaning if you turn the sound down, the visualization doesn't work. That is without some rather hefty math to normalize it manually. |
| headkaze:
Never knew you could record the stream playing without being the software playing the sound. Must be some low level driver hacking for that method because I remember doing a pretty hard and long search on Google for it. AFAIK recording sound output globally using the method I posted (albeit fiddly at best) was the only way to do it I could find. |
| Howard_Casto:
I didn't say I knew how to do it, I just know it can be done... case in point winamp and wmp, they both do it internally. |
| digitaldj:
Hey Guys i did some searching on some of the programming sites and couldn't really find anything on libraries. Can you guys point me in the right direction or from your experience what would be the best way to attack this? Thanks, Jukeman |
| headkaze:
--- Quote from: Howard_Casto on October 22, 2006, 11:23:52 pm ---I didn't say I knew how to do it, I just know it can be done... case in point winamp and wmp, they both do it internally. --- End quote --- If your program is playing the actual audio like winamp or wmp, you have control over the raw sound data being played. ie DirectSound (or winmm.dll using API). As you buffer it for playback you can display the raw data in any form you wish. Which is what I said a post above yours, but I think the real problem is we don't understand what he's trying to do. --- Quote ---Hey Guys i did some searching on some of the programming sites and couldn't really find anything on libraries. Can you guys point me in the right direction or from your experience what would be the best way to attack this? --- End quote --- I don't think anyone really knows what your trying to do, you never fully explained it. I know I don't. If you want to filter highs, mids and lows of audio data, the only method you can do it globally is how I already explained it. Unless your program is playing the sound then you can filter the audio as you play it or display it however you want. In the case of the latter I would do some searching on Google for DirectSound in VB6. As for filtering sound, do a search for an equalizer type application or something. Your probably better off posting this question on a VB6 programming forum. My personal favourite has always been Xtreme VB Talk. |
| Navigation |
| Message Index |
| Next page |
| Previous page |