DSLua Community
Welcome, Guest. Please login or register.
May 21, 2012, 08:34:15 PM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  Microphone « previous next »
Pages: [1]
Author Topic: Microphone  (Read 1279 times)
manu62300
Waxing Crescent
**
Posts: 89



« on: July 04, 2007, 02:48:09 AM »

Please give a exemple function for the microphone Huh
Logged

XtreamLua.com
La Référence en programmation sur PSP & DS
xtreamlua.miniville.fr
Bon dev...;
TOAST
Waxing Crescent
**
Posts: 67



« Reply #1 on: July 04, 2007, 04:39:54 AM »

Mic.StartRecording(asdf,10)


The mic functions are in the documentation if you didn't figure that out yourself.
Logged
manu62300
Waxing Crescent
**
Posts: 89



« Reply #2 on: July 04, 2007, 04:52:48 AM »

exemple with push A ==> record  and push B play sound recorded ?
Logged

XtreamLua.com
La Référence en programmation sur PSP & DS
xtreamlua.miniville.fr
Bon dev...;
TOAST
Waxing Crescent
**
Posts: 67



« Reply #3 on: July 04, 2007, 04:58:46 AM »

I guess this should work...

while true do
if Pads.A() then
   Mic.StartRecording( buffer, 10 )
end
if Pads.B() then
   Mic.Replay( 0, buffer, 10 )
end
end

I don't have DSLua and I can't be arsed to get it running so go ahead and try it yourself.
Logged
manu62300
Waxing Crescent
**
Posts: 89



« Reply #4 on: July 04, 2007, 05:18:07 AM »

thanks i test it
Logged

XtreamLua.com
La Référence en programmation sur PSP & DS
xtreamlua.miniville.fr
Bon dev...;
Pages: [1]
« previous next »
    Jump to: