B4A Library AudioRecord Library

ilan

Expert
Licensed User
Longtime User
I haven't tried it, but I would think that the returned buffer should be in the correct format to save directly to a file of the requested file type. So you may not need to do anything else with it.

Sorry i dont understand. The returned buffer is a wav file or am i wrong?
 

stevel05

Expert
Licensed User
Longtime User
In the AudioRecord library it is an array of PCM samples to which a wave header can be attached to make it a Wav file. In the MediaRecorder (AudioRecordApp or Audiostreamer) as you can specify an encoding type, it would make sense that the returned data buffer is in the format of the encoding you specified. I'm afraid you'll have to try it to see, but I would be surprised if it doesn't work like that.
 

rtek1000

Active Member
Licensed User
Longtime User
Hi,

Example 'artest.zip' no works here:

B4A version: 6.31
Parsing code. (0.04s)
Compiling code. Error
Error compiling program.
Error description: Missing parameter.
Occurred on line: 95
Record.Start("Recording",Null)
Word: )


Dim Record As Thread

Thread has a new usage?
 
Last edited:

rtek1000

Active Member
Licensed User
Longtime User

Hi, I changed this code Record.Start("Recording",Null) to Record.Start(Null,"Recording",Null), and returns:
 

stevel05

Expert
Licensed User
Longtime User
The first parameter should be 'me' so it calls the sub in the current module. There are other errors, probably needs updating for newer OS's. I'll try to take a look this evening.
 

stevel05

Expert
Licensed User
Longtime User
Artest1.02 is working as expected. It won't work in debug mode as it's not possible to run threads in debug mode.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…