> > suppose after completion of a project if i just write in a
> > movie script "set my sound device to "qt3mix"", will it be
> > able to switch the sound device to qt3.
>
> Are you just asking whether the soundDevice property is
> writable? It is:
>
> on switchSoundDevice deviceIWant
> -- avoid redundancy
> if the soundDevice = deviceIWant then return TRUE
> -- See if deviceIWant is available
> if the soundDeviceList.getOne( deviceIWant ) then
> the soundDevice = deviceIWant
> else
> alert "ERROR #switchSoundDevice:" && deviceIWant && "is
> unavailable."
> return FALSE
> end if
> return TRUE
> end
>
> It doesn't need to be done from a movie script; you cand do it from
> anywhere, including the Message window.
>
> put switchSoundDevice( "QT3Mix" )
> -- 1
Be careful with trying to use "DirectSound" on Windows NT. High enough
versions of DirectX to utilise "DirectSound" are unsupported; so:
-- Welcome to Director --
put the soundDevice
-- "MacroMix"
put the soundDeviceList
-- ["MacroMix", "QT3Mix", "DirectSound"]
put switchSoundDevice("DirectSound")
-- 1
put the soundDevice
-- "MacroMix"
--------------------------
The handler Rob gave will try to set the soundDevice, but will fail. Having
set it, you need to recheck it to ensure it was successful - iff (and only
if) you are trying to set it to "DirectSound" AND you are on a Winnt
platform.
Hope that helps,
Sean.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]