PDA

View Full Version : Migrating VB code



David
05-10-2013, 21:37
Hi all,

I found this post:

http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=65662&lngWId=1

and i tested this program under XP SP3 and Win7 Ultimate and works like a charm...

I think there is a good idea do a project to migrate this code from VB6 to thinBasic.

I think the goal will be build isolated modules, like:

* Mixer console
* WAV recording with ACM support
* Recording Filters / Effects dialog ( Echo, Phase Shift, Amplifier, Equalizer)
* Peak Meters
* frequency spectrum
* amplitudes curve

to let the thinBasic users the possibility of put anywhere of your programs this visual components.

I'm a horrible VB programmer.... is for this reason i ask for help with this project.

If any are interested, let me know this, and i will try to provide all help as i can do ( perhaps bring you a beer only... who knows...)

Thanks in advance,
David

kryton9
06-10-2013, 03:06
We got some headers converted from VB6 to oxygenbasic you could start with. You could use oxygenbasic to create a dll that you could use with thinBasic.
http://www.oxygenbasic.org/forum/index.php?topic=849.msg7011#msg7011

David
08-10-2013, 06:49
Thanks Kryton9,

I will try soon...

For the while, i addapted the sample in order to get more kind of vumeters.

In this link:

https://app.box.com/s/69ygs8iczeqmbc7awbfm
(Vumeters2.zip, by Neo Regalos)


I get this:

8576

Under XP, all works fine.

Under Vista, Seven or 8, is not possible select the stereo mixer. Only the Mic.

Does anybody know if something into winmm.dll was changed since Vista ?

or better, does any know how to fix this issue ?

Thanks in advance,
David

kryton9
10-10-2013, 03:52
Here is something I found here:
http://www.codeproject.com/Answers/337925/Volume-control-in-Windows-7

In case the link doesn't work, here is what they say:

since Windows Vista/7 MS changed the access to control volume, mixers, etc. and it's called the coreaudio API.
Here are some links, I'm sure you can work something out with it:

http://msdn.microsoft.com/en-us/library/ms678715.aspx?ppud=4[^]
Vista Core Audio API Master Volume Control[^]
http://rongchaua.net/blog/c-adjust-master-volume-in-vista-and-windows-7/[^]

You can also use or have a look at NAudio Wrapper:
http://naudio.codeplex.com/[^]

Good Luck Wink | ;)
Regards
Posted 29-Feb-12 1:11am
Björn Ranft