Here is the code I used to save multiple files. Datafile is the actual name of the file saved on the phone or device. I set this in the EnterScene of my Game.lua file so that it would save the date as an easy way to ensure all names were unique. Its been awhile since ive actually done any coding and this was an old project, so if this no longer works or isnt what ur looking for I appologize. Also r is just a variable I had declared to hold the reference to the recording.
[code]
– Located in EnterScene
local d = os.date("*t")
datafile = d.month … “_” … d.day … “_” … d.year … “_” … d.hour … “_” … d.min … “_” … d.sec … “.pcm”
– Located in a custom function called when I wanted to start recording
– Record sound
local filePath = system.pathForFile( datafile, system.DocumentsDirectory)
r = media.newRecording(filePath)
r:startRecording()[/code]
Also be sure that the file extension is the one you need. In this example it was for an android device.
Hope this helps and goodluck! [import]uid: 141138 topic_id: 25988 reply_id: 133754[/import]