正在加载图片...
中国科学技术大学电子工程与信息科学系©2018 chunk,Fact chunk(附加块,可选),Data chunk。如图I所示。 File offset field name Field Size (bytes) (bytes) 0 ChunkID The "RIFF"chunk descriptor ChunkSize 4 The Format of concern here is Format "WAVE",which requires two 12 sub-chunks:"fmt and "data" Subchunk1 ID 16 Subchunk1 Size 20 AudioFormat c2 22 The "fmt"sub-chunk Num Channels 2 24 SampleRate describes the format of 28 the sound information in ByteRate 4 the data sub-chunk 32 BlockAlign 34 BitsPerSample 2 36 Subchunk2ID 40 The"data”sub-chunk Subchunk2Size 44 Indicates the size of the sound information and data contains the raw sound data 图1*WAV文件的RIFF格式示意[4] 3、android.media声音播放的几个类 http://www.android-doc.com/reference/android/media/MediaPlayer.html http://www.android-doc.com/reference/android/media/SoundPool.html http://www.android-doc.com/reference/android/media/AudioTrack.html 4、android..meida录制声音的类 http://www.android-doc.com/reference/android/media/AudioRecord.html 三、 示例说明 函数名称 函数功能 void play_with_media_palyer(String str_file_name) 使用MediaPlayer播放本地音乐文件 如果您在阅读过程中发现疏漏和错误,请联系《多媒体技术基础》课程组{network,.cxh}@ustc.edu.cn中国科学技术大学电子工程与信息科学系© 2018 如果您在阅读过程中发现疏漏和错误,请联系《多媒体技术基础》课程组{network,cxh}@ustc.edu.cn chunk,Fact chunk(附加块,可选),Data chunk。如图 1 所示。 图 1 *.WAV 文件的 RIFF 格式示意[4] 3、android.media 声音播放的几个类 http://www.android-doc.com/reference/android/media/MediaPlayer.html http://www.android-doc.com/reference/android/media/SoundPool.html http://www.android-doc.com/reference/android/media/AudioTrack.html 4、android.meida 录制声音的类 http://www.android-doc.com/reference/android/media/AudioRecord.html 三、 示例说明 函数名称 函数功能 void play_with_media_palyer(String str_file_name) 使用 MediaPlayer 播放本地音乐文件
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有