XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

Should the pointers to the data in XAUDIO2_BUFFER and XAUDIO2_BUFFER_WMA const?

Last post 4/17/2009 9:09 PM by GameDevDude. 0 replies.
  • 4/17/2009 9:09 PM

    Should the pointers to the data in XAUDIO2_BUFFER and XAUDIO2_BUFFER_WMA const?

    XAUDIO2_BUFFER has:
    BYTE* pAudioData
    and XAUDIO2_BUFFER_WMA has:
    UINT32* pDecodedPacketCumulativeBytes;

    Neither of these are const pointers, but I can't think of a reason they would change the data that these pointers point to. Is it safe to assume that they don't change them?

    Thanks!

    -Dude

    PS. If any people on the Microsoft team are reading this, making those const pointers in a future version would be awesome! :-D

     

Page 1 of 1 (1 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG