Copyright © 1998-2010 MultiMedia Soft

SetSoundFromNet method

Previous pageReturn to chapter overviewNext page

Remarks

Changes one of the sounds at run-time, downloading a sound file from the Internet.

Accepted extensions for the file are WAV or AMZ.

When the download ends a SoundDLLDone event is generated (also in case of failure).

 

Syntax

Visual Basic

control.SetSoundFromNet (index as enumSounds, URL as string, username as string, password as string) as integer

 

Visual C++

BOOL control.SetSoundFromNet (long index, LPCTSTR URL, LPCTSTR username, LPCTSTR password);

 

Parameter

Description

 

 

index

Numerical value that represents the index of the sound property to change. Supported values are the following:

Mnemonic constant

Value

Meaning

SOUND_DOWN

0

Changes the SoundDown property

SOUND_UP

1

Changes the SoundUp property

SOUND_MOUSEOVER

2

Changes the SoundMouseOver property

SOUND_MOUSEOUT

3

Changes the SoundMouseOut property

URL

String that specifies the Internet address from which the sound file will be loaded; only URLs beginning with ftp: or http: are supported.

username

String that specifies the name of the user to log in. Useful only if the URL is FTP.

password

String that specifies the password to use to log in. Useful only if the URL is FTP.

 

 

Return value

 

Value

Meaning

 

 

FALSE

The operation failed

TRUE

The operation was successful