Which endian CoreAudio API uses as audio buffer ?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Which endian CoreAudio API uses as audio buffer ?

  1. #1
    Join Date
    Oct 2011
    Posts
    6

    Which endian CoreAudio API uses as audio buffer ?

    I've testing microphone capturing by Core Audio Interfaces and mmio-API.

    - 2channel (stereo)
    - 16bit per channel

    I can capture and save audio as .wav format then I checked buffer values by write these data to CSV file like below.

    ofstream cs("pcm.csv");
    short *p = (short*)captureBuffer;
    for( int i = 0; i < capturer->BytesCaptured(); i+=4 )
    {
    cs << *p++ << "," << *p++ << endl;
    }

    PCM data that was captured by mmio-API seems as oscillating wave on CSV data, but PCM data that was retrieved by IAudioCaptureClient::GetBuffer did'nt seems oscillating wave.

    How to treat audio data of Core Audio API ?

  2. #2
    Join Date
    Oct 2011
    Posts
    6

    How to treat audio data buffer on Core Audio API ?

    sorry, I'll fix my post title.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center