hi all,

i am trying to create a flash object which
allows me to get the soundlevel from the selected
input device (mic or line).

it works fine, if i have a flashsprite on the stage
which contains the following actionscript code (excerpt ):

userMic = Microphone.get();
this.createEmptyMovieClip("tracker", 1);
this.tracker.attachAudio(userMic);

the soundlevel can received in lingo:
myObj=getvariable(sprite(1),"_level0",False)
the_level = myObj.tracker.activityLevel



BUUUUT it must be possible to get the input without
importing a swf. its a question of elegance, i think.

i can generate a flash microphone object in lingo using the flash xtra:

the_mic = newObject("Microphone")

and i can select my input device:

my_mic = the_mic.get(0)

the problem is to read out the level information !

my_mic.activityLevel always has the value -1

the properties of my_mic seams to be ok ( my_mic.muted = 0 etc. )
any ideas ? i am running director mx on mac os x

best whishes backenbart

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]

Reply via email to