It is currently Fri Apr 28, 2017 5:10 am



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Audio.record
Unread postPosted: Sun Jun 12, 2016 2:55 pm 
Offline

Joined: Sat May 14, 2011 7:43 am
Posts: 355
Location: South Africa, UK & US (Florida)
The Manual states that the File Type MUST be .3GP
No longer true,it makes perfectly good .MP3 files,so possibly other types too?

Peter


Top
 Profile  
 
 Post subject: Re: Audio.record
Unread postPosted: Sun Jun 12, 2016 9:49 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
Hi Peter,

Have you checked the format of your file on a pc?

I have a feeling the extension says mp3, but the content will say 3gp.

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Audio.record
Unread postPosted: Sun Jun 12, 2016 10:36 pm 
Offline

Joined: Sat May 14, 2011 7:43 am
Posts: 355
Location: South Africa, UK & US (Florida)
Good thought Nicolas.
You are probaby right, but the important thing is that the Android device recognises and plays it back ok.
I realise there could be a problem playing the file on eg a car radio player.
But all I was saying here is that the Manual is incorrect. There may be further "bug" issues, but that's another story.
Peter


Top
 Profile  
 
 Post subject: Re: Audio.record
Unread postPosted: Sun Jun 12, 2016 11:32 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
The manual is confusing, but it is not wrong. Your file (produced by AUDIO.RECORD) really is a 3GP, even if you disguise its extension as MP3...

Currently Run.java defines one only output format:
Code:
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);

What the manual says exactly is "The file must have the extension .3GP. "
Because the file that is produced IS a 3gp.
So the manual better say "The file produced by this command is a 3GP, so you should give it a .3gp extension so that it matches its content."

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Audio.record
Unread postPosted: Mon Jun 13, 2016 2:01 am 
Offline

Joined: Sat May 14, 2011 7:43 am
Posts: 355
Location: South Africa, UK & US (Florida)
That's clear thank you. So the Manual IS wrong, and your suggestion is the right improvement. Thanks for sorting that out.
Peter


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred