sound_init has changed

Beta Testing discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

sound_init has changed

#1 Post by Thomas.Pahl@t-online.de » 02 May 2009 11:24

Hi,
changes in sound library? sound_init till now without parameters - now expects two parameters. which? no hint in help.
regards Thopas

User avatar
marko.ziv
mikroElektronika team
Posts: 530
Joined: 06 Dec 2007 10:11
Contact:

#2 Post by marko.ziv » 04 May 2009 11:39

Hi,

you are correct, info on the Sound library in the Help is out of date (version for previous library) we will correct this for the release.

For some additional info i can tell you that the correct initialization of the Sound function would be

Code: Select all

  Sound_Init(PORTC,3)             ' Initialize sound pin
To help you understand there is an example for Sound library, you can find it in ..\Examples\Other\Sound folder of the compiler.
If you use Ctrl+Space option you will see the definition of the Sound_Init function

sub procedure Sound_Init (dim port as byte, dim pin as byte)

Now you can define Sound function on different ports and pins.

Best Regards

Post Reply

Return to “mikroBasic PRO for AVR Beta Testing”