SoundRecordingAPISample to save audio in Internal Storage

by haig » Fri, 12 Sep 2008 07:31:48 GMT


Sponsored Links
 I have looked at the SoundRecording API example, and it can save audio
to an sdcard.

I would like to save the audio in internal storage, like /data/data/
<package>/files/.

Is there a reason why this might not be possible? Any tips will help

--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by Megha Joshi » Fri, 12 Sep 2008 07:35:52 GMT


 The recommended practice is to only store : ringtones, alarm and
notification sound audio files in internal storage. Rest of the media files
should be stored on sdcard.

2008/9/11 haig <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


SoundRecordingAPISample to save audio in Internal Storage

by haig » Fri, 12 Sep 2008 14:28:10 GMT


 Thank you that clears things up




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by blindfold » Fri, 12 Sep 2008 20:37:55 GMT


 Which is expected to be faster: internal storage or sdcard?
I'm currently temporarily saving content to internal storage
because MediaPlayer cannot play generated content from memory,
but the speed and power penalty of doing so on physical phones
remains unclear.




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by Megha Joshi » Sat, 13 Sep 2008 02:36:54 GMT


 2008/9/12 blindfold <[EMAIL PROTECTED]>



Could you clarify what you count as generated content and memory?




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by blindfold » Sat, 13 Sep 2008 03:00:14 GMT


 Hi Megha,

Yes, by generated media content I mean content that is not some fixed
material that is already stored somewhere on the device or on some
remote server, but that is created on-the-fly in response to user
actions or sensor inputs (e.g., camera input). One may typically think
of a byte array or its corresponding stream being filled with
calculated (synthesized) content, meant to played by MediaPlayer. This
is not possible with the MediaPlayer APIs in Android SDK 0.9 beta. The
problem was reported and discussed as issue 739. Additionally, I have
today on android-internals posted concern about possible detrimental
effects on device lifetime for media-intensive processing of generated
content that currently requires this temporary storage on (flash) SD
card or (flash) internal memory.

Regards




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by Megha Joshi » Sat, 13 Sep 2008 07:31:23 GMT


 2008/9/12 blindfold <[EMAIL PROTECTED]>


The sdcard access might be faster, but it depends on the particular sdcard.
Only way to know for sure is to measure it.




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by blindfold » Sat, 13 Sep 2008 18:33:11 GMT


 Thanks Megha, I'll check it out once I have the opportunity, or maybe
turn it into a user option.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. "Software" Volume Control Problem

Hi all,

I found in my Android platform that everytime when I adjust the volume
level (i.e. press the volume key +/-), it seems a software volume
control scheme is used (Instead, I expect a direct function call to a
codec hardware driver, and changing audio gain in corresponding
registers).

I found this using the alsa_amixer to list out the volume change in a
"Master Volume" element. Here is what I figure out this following the
sequence below:

1. After bootup, monitor the current volume level of the "Master
Volume" element using the alsa_amixer. The GET value is 255 out of the
maximum 255.

2. Playback a song using the Android music player.

3. Adjust the volume level in the Android to see if there is changed
in the "Master Volume" status.

4. I found I can hear the change in the headphone audio output, but
the "Master Volume" element still keeps the value 255 no matter I
changed the volume from the lowest to the highest.

I would like to disable this software volume if it is really using and
use the hardware. Does anyone have any idea about what is going on in
my case? Thanks!!!

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Run android apps on Linux

I have ported and built the android kernel for x86 and it is booting
up on ubuntu. Now I want to know how to run android applications
natively on ubuntu without SDK. As I have said i have the android
kernel working. How do I go about running or executing these android
applications.?

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. "Nexus" and "Many" Wallpaper not working

4. How to change text size and color in android:summary

5. Need help in Porting Android on JOP (Java Optimized Processor)

6. JetPlayer help

7. How to hide the status bar when using WebView?