Android : Playing Bigger Size Audio Wav Sound File Produces Crash

Mar 25, 2010

I am trying to play the bigger size audio wav file(which is >20 mb) using the following code(AudioTrack) on my Android 1.6 HTC device which basically has less memory. But i found device crash as soon as it executes reading, writing and play. But the same code works fine and plays the lesser size audio wav files(10kb, 20 kb files etc) very well.

P.S: I should play PCM(.wav) buffer sound, the reason behind why i use AudioTrack here. Though my device has lesser memory, how would i read bigger audio files bytes by bytes and play the sound to avoid crashing due to memory constraints. Code...

Could someone guide me please to play the AudioTrack code for bigger size wav files?

Android : Playing bigger size audio wav sound file produces crash


Android :: Bad Sound Quality When Recording / Playing Audio Files

Oct 16, 2010

Hey, I have a problem with android programing when I try to record and then play the file that was just recored. I can both record and play the sound but the quality stinks. Its not just bad is really hard to listen to and sound abit like its a computer generated voice. I use the andriod SDK-emulator. The code that sets up the recording looks like this;

MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();

And the code playing the file later looks like this;
MediaPlayer mp = new MediaPlayer(); mp.reset();
mp.setDataSource(path); mp.prepare(); mp.start();
I don't know what part that makes the audio file sound really bad or if its just the emulator that makes it bad and that it would work on a real phone.

View 2 Replies View Related

Android :: Playing Short Audio Clip Has Tick Sound

Dec 14, 2009

I'm using the SoundPool to play a series of small audio clips and am having issues with the audio when it starts. I have the audio attached to a button press. When I press the button mulitple times the tick persists. I was wondering if this was the audio file itself or is there something I need to do differently with the SoundPool other than play simply play the clip. These are .ogg files I created using Audacity. When I play them in my dekstop media player, they sound fine.

View 2 Replies View Related

General :: Audio Echoing - Playing Sound Twice?

Jan 22, 2013

I have a flash file that I open through smartswf and suddenly the audio is now echoing, like its playing the sound twice. It use to work OK on this ROM (cyanogenmod 10) with this app. It does the same with other flash files also. I have tried other apps and does the same thing, and tried reinstalling flash and rolling back to earlier versions with the same result.

View 1 Replies View Related

Android :: Playing Audio File During Call

Jan 30, 2009

I want to accept incoming calls and play an audio file for the caller. Is there a possibility of playing an audio file during a phonecall, so that the caller hears a wav- file? It seems to me that nothing is possible during a phone call since release 1.0. Hope this is getting better in the next release.

View 5 Replies View Related

Android :: Playing Audio File On Voice Call

Apr 20, 2010

I want to play an audio file on a voice call as following:
The application initiates a call from device X to device Y
When Y replies application on device X should inject an audio file in the stream of the call so device Y hears this audio file.

View 2 Replies View Related

General :: Samsung S3 - Playing Audio File During Call?

Jan 28, 2014

I want to play an audio file so that the person i am calling can hear it.Not through the speaker though because it will decrease the sound quality.

I tried to open the audio file while calling (with default sound player and google music) but although it openes the app it says "unable to play during call".I also tried in handsfree mode but didnt worked.

I use sg s3 mini with android 4.1.2.

View 1 Replies View Related

General :: Playing Local Audio File In Webview App

Feb 3, 2012

When trying to play a local mp3 file included in the APK, nothing happens. However, if I pull an mp3 from the web it works.

e.g.

< a u d i o src="[URL]..." > WORKS

< a u d i o src="01.mp3" > DOES NOT WORK

I tried looking through logs for clues and found this line. I'm not sure if it's relevant or not.

PlayerDriver::isProtectedFile(file:///android_asset/www/01.mp3)

I'm new to Android development, so I can only guess that the file is somehow inaccessible for streaming.

I'd love to get this figured out though. Having to pull the files remotely every time is not a desirable solution.

Some additional info. Either solution works when tested in the browser. The local file problem only arises when I convert it to an app. I'm using PhoneGap build to create the APK.

View 3 Replies View Related

Motorola Milestone :: Ringtone - Notification Sound From Any Audio File On SD

Jul 31, 2010

Why is that i can`t assign any MP3 file from SD card as ringtone or notification sound from settings tab?

View 1 Replies View Related

LG Ally :: Get Font Size Bigger?

Oct 4, 2010

I love my phone, but just hate the fact that the font is so tiny. I have 20/20 vision at a distance, but have to wear glasses for small print.Is there anything I can do to get the font size bigger? I had no problem at all reading text messages, etc. my previous phone (LG Envy 2).

View 2 Replies View Related

Nexus :: Require Bigger Size Picture For Wallpaper?

Jan 25, 2010

since the Nexus One has more screens then other Androids... does it require a bigger size picture for the wallpaper? or it automatically fits whatever size picture you transfer into your SD card?

View 1 Replies View Related

Android :: Playing AudioTrack Multiple Times Producing Crash

Mar 16, 2010

I am trying to play audio buffered sound (.wav) using AudioTrack. Please see the code below. I need to call this function under a Thread to support simultaneous play. It is fine being under a Thread. It is working fine playing the sound normally. But if i execute playing the sound using AudioTrack one after another continuously (i.e. executing second play before completing the first play sound), produces device crash (force close unexpectedly error). Does anyone come across such problems and resolve it in a way?

View 1 Replies View Related

Android :: Installed Application Size Vs APK File Size

Jul 8, 2010

Can somebody explain to me what makes up the installed application size? I have an apk that is about 8 MB, and often when I install I get the INSUFFICIENT_STORAGE error. I have around 25-30 MB free space on the phone. I'm doing debugging so I have to upload lots of new versions. If I uninstall the previous version then I can install the new version. The application manager claims that the app is taking up 22 MB. So back to the original question, how come the app is taking up 22 MB when it really only is 8 MB?

View 7 Replies View Related

Android :: Analog To IOS Core Audio / Audio File Stream Services?

Sep 22, 2010

Is there an Android equivalent to the iOS Core Audio / Audio File Stream Services? I need to be able to read audio bytes from a network and feed them to the audio system under my control, so I can do my own timeouts / reconnects / range requests / etc. without interrupting the audio playback (since the system audio thread would be playing audio already enqueued). It seems that MediaPlayer doesn't give me this level of control. Is there a lower-level framework that does, either in the SDK or NDK?

View 2 Replies View Related

Jelly Bean :: S3 Sound Options Crash

Dec 3, 2013

I have a s3 on 4.1.2 that when I try to open Options > Sound it hangs for about 3 seconds then puts me back to the desktop with no message.

Ive done factory resets etc with no change.

View 2 Replies View Related

Android :: Combine Only One Audio File From Two Audio Files

Oct 2, 2010

I want combine two audio files. (A audio file + B audio file = AB audio file)So, my search result is:

1. useing an AudioTrack.

2. decode PCM from audio file.

3. combine PCM.

This is currect? It there another way?

View 1 Replies View Related

Android :: Any Audio Is Currently Playing

May 22, 2009

I am using a MediaPlayer instance in order to stream audio files from an Internet location. The audio player is in a separate activity. The user can select from a list of audio files and come to this activity which plays the audio.Now the user might go back to the previous activity (with the list)and select another audio file. In this case, I want to stop any other audio that is playing and start playing the new audio which was selected.Is there any way I can know whether an audio file is playing without having to hold on to the MediaPlayer object?

View 8 Replies View Related

Android :: Playing Of Wma Audio

Apr 9, 2009

the opencore can not play the audio of wma. is it right? and the total time of the wma file can not be find in the trackbrowseractivity. who know why?

View 2 Replies View Related

Android :: Playing Audio From Audio Track In Android

Feb 15, 2010

I want to play music from online mp3 link.I am reading the music data into a stream and trying to play it using audio track.But itz giving only noise.No music i could listen.here buffer is the audio data i am reading into.Same buffer I can play in MediaPlayer,,,But i could not play in audio track.

View 1 Replies View Related

Android :: Using ASE And Playing Sound

Oct 26, 2009

I have a python application (anki) running under ASE. It is a simple web server that uses the browser as a UI. My only issues are playing sound, which are stored locally. On the iphone, anki uses a command line app (play) to play the mp3 files. Unfortunately, there is no command line app that I can call that takes a filename as an arg and plays it. What are my options with android?

- write a sound service that sits and listens for a filename to play; possibly listening on a port for filename

- write an Java-app that I call from within python that forks off and loads a specified file, plays it and then exits. Can you call other java apps from ASE?

- wait till the browser supports the <audio> tag. I guess this is html5, but am unaware if this will be on android any time soon.

View 2 Replies View Related

Android :: Audio Stream From Currently Playing Song

Oct 13, 2009

I can capture an audio stream from the mic, but can I capture the currently playing audio stream?

View 2 Replies View Related

Android :: Playing Audio To Bluetooth Headset

Aug 18, 2010

Can we play the audio(amr file) to the Bluetooth headset(no A2DP support) by using android 2.1/2.2 version APIs? If so can you suggest me which API I have to use to do the same?

View 2 Replies View Related

Android :: WebView Playing Audio With Javascript

Sep 25, 2010

I'm trying to very quickly port over an html application with plays sound (with soundmanager2) to a native android app using WebView. From my research, I haven't seen any evidence that sound, such as mp3s, can be played via javascript or any other methods using WebView.

My goal now is to quickly port over the html app and then eventually create a truely native application without using WebViews.

If anyone has been able to successfully implement playing audio using WebViews and Javascript or if this is just not possible at this time.

View 1 Replies View Related

Android :: Mute Currently Playing Audio Applications?

Jan 3, 2010

My self-teaching project is a small application which plays an audio news stream. To be effective, the application really needs to interrupt any currently playing media players (eg: Last FM, Imeem, music player, Spotify etc).I don't know what will be playing or what application will be playing it, but I want to ask them all to pause until I've done. Sounds rather bold, I know, but it must be possible, because when there's an incoming call, that's basically what happens.Can I send a message to all audio players asking them to pause for a moment? Could I spoof an incoming call, just for the time it takes?

View 2 Replies View Related

Android :: Playing An Audio Clip OnClick

Jun 15, 2010

How do I set up an audiofile to play when a user touches an image.Where should I store the audio file and what code should I use to actually play the file?I don't want to bring up the MediaPlayer interface or anything like that.

View 1 Replies View Related

Android :: Playing Html5 Audio In Browser

Jun 18, 2010

I have a javascript that plays audio in the browser, using the html5 <audio> tag. It works fine in the iPhone browser, but not in Android. (Testing using a htc desire with android 2.1.) Anyone know why?By the way, I am also trying to enlarge the audio button that shows up in the iphone (the default one is quite small), with no luck so far - would be grateful for any ideas!

View 3 Replies View Related

Android :: Playing Multiple Audio Files

Oct 1, 2010

I think I should know this, but my mind has gone blank. I'm making an app that has a few hundred small sound files and I want it to play a certain file dependent on a String I pass to the function. Where I hit the brick wall is getting the resId of the sound file.

View 1 Replies View Related

Android :: Playing Audio From Resource During Call

Jul 1, 2009

My application is making call from application. Now I want to play some audio on speaker when the caller will receive call. So can some one tell me will i have to play audio in new thread or I will have to do some change? Can someone give me any code snippet?

View 3 Replies View Related

Android :: Playing Sound On App Startup

Nov 7, 2010

How do I go about getting my app to play an mp3 (in my res) on startup? Or how how about if I wanted this to happen when a button is clicked?

View 1 Replies View Related

Android :: Playing Same Sound Repeatedly

Dec 8, 2008

I have the following problem: when i try to play a sound over and over again, it sometimes (actually most times) is not played.the documentation says that one should use the media player in the following sequence if a sound should be played several times: is this the wrong approach? is there a more performant way to reset the pointer in the sound sample so that it can be played from the beginning? i tried using mediaPlayer.seekTo(0); but it didn't help. Code...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved