Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8977973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:29:52+00:00 2026-06-15T19:29:52+00:00

I captured raw audio data stream together with its WAVEFORMATEXTENSIBLE struct. WAVEFORMATEXTENSIBLE is shown

  • 0

I captured raw audio data stream together with its WAVEFORMATEXTENSIBLE struct.
WAVEFORMATEXTENSIBLE is shown in the figure below:

The WAVEFORMATEXTENSIBLE struct

Following the standard of wav file, I tried to write the raw bits into a wav file.
What I do is:

  1. write “RIFF”.

  2. write a DWORD. (filesize – sizeof(“RIFF”) – sizeof(DWORD)).

=== WaveFormat Chunk ===

  1. write “WAVEfmt “

  2. write a DWORD. (size of the WAVEFORMATEXTENSIBLE struct)

  3. write the WAVEFORMATEXTENSIBLE struct.

=== Fact Chunk ===

  1. write “fact”

  2. write a DWORD. ( 4 )

  3. write a DWORD. ( num of samples in the stream, which should be sizeof(rawdata)*8/wBitsPerSample ).

=== Data Chunk ===

  1. write “data”

  2. write a DWORD (size of rawdata)

  3. write the raw data.

After getting the wav file from the above steps, I played the wav file with media player, there is no sound, playing with audacity will give me a distorted sound, I can hear that it is the correct audio I want, but the sound is distorted with noise.

The raw data can be find here

The wav file I generate is here

It is very confusing to me, because when I use the same method to convert IEEE-float data to wav file, it works just fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:29:53+00:00Added an answer on June 15, 2026 at 7:29 pm

    I figured this out, it seems the getbuffer releasebuffer cycle in IAudioRenderClient is putting raw data that has the format same as that passed into the initialize method of the IAudioClient.

    The GetMixFormat in IAudioClient in my case is different from the format passed into the initialize method. I think GetMixFormat gets the format that the device supports.

    IAudioClient should have done the conversion of format from the initialized format to the mixformat. I intercept the initialize method, get the format, and it works like a charm.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a capture process which writes raw video data and audio data to
I'm using JNI to obtain raw image data in the following format: The image
I have raw data of an image captured from my phone, it's resolution is
I have a raw audio file captured from a camera in the format u-law
i am trying to capture raw buffer data into an audio file. Like this:
I have one audio file captured from my iphone. I want to upload this
I want to compare two xml raw files and capture their differences in data.
I have a raw H.264 Stream from an IP Camera packed in RTP frames.
I was wondering whether it is possible to capture audio data from other sources
I captured a video and took out a frame of that, converted it to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.