How to stream alaw audio?

All your problems with Audio, Video and Images.

How to stream alaw audio?

Postby wirblix » Fri Mar 19, 2010 9:49 pm

Hello,

I've seen a few apps on the market that can stream audio in alaw format, but Android doesn't support alaw by default (only linear PCM):

http://developer.android.com/intl/de/gu ... rmats.html

Any idea how those devs are achieving this?
wirblix
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Apr 29, 2009 12:10 am

Top

Postby mrco » Fri Mar 19, 2010 10:19 pm

This is possible with using AudioTrack & alaw native decoder (you can found it in libsnd project).
mrco
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Fri Jan 15, 2010 11:31 am
Location: 2V Software

Postby wirblix » Fri Mar 19, 2010 10:30 pm

Thanks for the response. Do you know of any sample source showing this in action?
wirblix
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Apr 29, 2009 12:10 am

Postby mrco » Mon Mar 22, 2010 10:27 am

Yeah. Sorry, but i couldn't show it (i signed NDA).
mrco
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Fri Jan 15, 2010 11:31 am
Location: 2V Software

Postby wirblix » Fri Apr 02, 2010 10:49 pm

After reading through the AudioTrack docs, I don't think it's what I was looking for. I'm actually trying to play a network stream via RTSP. The stream contains Alaw PCM wave data. Did I miss something?
wirblix
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Apr 29, 2009 12:10 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 20 guests