[↑]
RECSTART
- Record sound played on BEEP/BGMPLAY/TALK
RECSTART Time
- Record sound played on BEEP/BGMPLAY/TALK
RECSTART
1. Record sound played on BEEP/BGMPLAY/TALK
RECSTART Time
・Record at the sampling frequency 48KHz for the time given by the argument.
・Recording stops after the specified time.
・Use RECSTOP to stop during recording.
Argument
Time
Number of seconds to record: 0.1 to 60
Example
RECSTART 5
BGMPLAY 3
WHILE RECCHK():WEND
BGMSTOP
DIM BUF[2,1]
RECSAVE BUF
WAIT 60
PCMSTREAM BUF,48000
INPUT A$
2. Record sound played on BEEP/BGMPLAY/TALK
RECSTART
・Record at sampling frequency of 48KHz (no time limit).
・The buffer is prepared for 5 seconds.
・Use RECSTOP to stop recording.
Example
LENGTH=48000/3
DIM BUF[2,LENGTH]
PCMSTREAM BUF,48000
PCMVOL 0,16384
PCMVOL 1,16384
RECSTART
BGMPLAY 1
PPOS=0
WPOS=0
LOOP
NPOS=RECPOS()
IF PPOS!=NPOS THEN
FOR I=PPOS to NPOS-1
RECDATA I OUT L,R
BUF[0,WPOS]=L
BUF[1,WPOS]=R
WPOS=(WPOS+1) mod LENGTH
NEXT
PPOS=NPOS
ENDIF
ENDLOOP
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the
official reference site
of the
SmileBoom Co.Ltd.
that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it.
For automatic update, contents may become improper.
Please confirm the correct content in an official site.
June 3, 2020
by mim
OK
|