Record sound: Difference between revisions
Content deleted Content added
m Omit from LFE |
|||
Line 323: | Line 323: | ||
end function |
end function |
||
</lang> |
</lang> |
||
=={{header|LiveCode}}== |
|||
This example sets some aspects of a sound recording individually and also shows use of the sound input dialog where a user can conveniently set them as well, either may be used.<lang LiveCode>command makeRecording |
|||
set the dontUseQT to false -- on windows use true |
|||
set the recordFormat to "wave" -- can be wav,aiff, au |
|||
set the recordRate to 44.1 -- sample at 44100 Hz |
|||
set the recordSampleSize to 16 --default is 8 bit |
|||
ask file "Save recording as" |
|||
if it is not empty then |
|||
answer record --show sound input dialog with presets above |
|||
record sound file it -- actual record command |
|||
wait 10 seconds |
|||
stop recording |
|||
end if |
|||
end makeRecording</lang> |
|||
=={{header|Mathematica}}== |
=={{header|Mathematica}}== |