I was wondering if there’s a way to playback the recorded buffer without first writing it to a file.
I noticed that after the time the recording is complete there is a delay between the time the file is written and available for playbook. While I’ve found wav files to be the fastest there still seems to be a bit of a delay.
Any advice or suggestions?
[code]
r = media.newRecording( filePath )
r:startRecording()
– after a 10 second delay
recordTimer = timer.performWithDelay( 10000, stopRecordingListener )
function stopRecordingListener()
r:stopRecording()
local audioPlayback = audio.loadStream( “data.wav”, system.TemporaryDirectory )
Channel, Source = audio.play( audioPlayback)
end
[/code] [import]uid: 62746 topic_id: 14329 reply_id: 314329[/import]