Recording sound for live Fourier analysis [closed]

I would like to record sound without the dialog SystemDialogInput["RecordSound"] for implementing a live fourier analysis of the recorded sound.

I thought for a simple loop like:

• start recording
• wait for given time
• stop recording
• display spectrum

There was a thread very helpful for me: Is it possible to use mathematica to record sound ...

Szabolcs proposed a nice idea, however, I have problems with runnig the code. The first statement is supposed to return some device number, I guess, but it returns a list of installed devices:

FrontEndExecute[FrontEndRecordSound[5]]

{Mikrofon (High Definition Audio -> Mikrofon (High Definition Audio}

Now, I do not know what to enter in the next statement as deviceNumber:

FrontEndExecute[FrontEndRecordSound[6, deviceNumber]]

I tried so far:

• The 1st (and only) element of the device list -> Crash

• The device list -> Crash

• 0 and 1 -> the function returns an empty list, instead of the list of possible formats which is needed for the next function.

I run Mathematica 8 on Windows 7 64 bit. The RecordSound dialog works entirely well.

Do you have any suggestion? Thank you very much for your help.

-
OMG, directly after posting this I figured it out ... "Mikrofon (High Definition Audio" is the device number. it's just not a number. now it works –  Smitty May 30 at 11:28
You can delete it at the bottom of the question :) –  Öskå May 30 at 11:31

closed as too localized by Sjoerd C. de Vries, Oleksandr R., Simon Woods, Artes, m_goldbergMay 30 at 23:09

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.