Discussion:
Create Wav File
zenoname
2010-06-08 08:18:58 UTC
Permalink
Hello,

I'm using AudioTrack to write pcm sample to the speaker (and it works
great).
I'd like to do the same but write the pcm samples directly to a file
and more specifically create a wav file.
I checked the API reference and forums but didn't find where to start.
Could someone give me some clue to do that ?

Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
niko20
2010-06-08 16:40:01 UTC
Permalink
Hi,

Google "WAV file format".


-niko
Post by zenoname
Hello,
I'm using AudioTrack to write pcm sample to the speaker (and it works
great).
I'd like to do the same but write the pcm samples directly to a file
and more specifically create a wav file.
I checked the API reference and forums but didn't find where to start.
Could someone give me some clue to do that ?
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
zenoname
2010-06-09 07:37:41 UTC
Permalink
Sorry but how it's gone help me to find how to create wav file with
android SDK ?
I know what is wav file format and how to create wav file using c++
for example (add riff header, writing pcm samples ...)
My question is : how can I do that with android SDK - java ?
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Andrew Brampton
2010-06-09 08:49:17 UTC
Permalink
This shows you how to write files to the SD card:
http://www.anddev.org/working_with_files-t115.html

Then you write your own wav header, and your own pcm samples.

Andrew
Post by zenoname
Sorry but how it's gone help me to find how to create wav file with
android SDK ?
I know what is wav file format and how to create wav file using c++
for example (add riff header, writing pcm samples ...)
My question is : how can I do that with android SDK - java ?
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
zenoname
2010-06-09 12:22:26 UTC
Permalink
Thanks for the link.
I hoped there was a direct way to write a wav (like audiotrack to
file)
I think I will rather do it directly in my native library then (as I
already have all the stuff to do it in c++)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Continue reading on narkive:
Loading...