|
-
March 11th, 2010, 11:31 PM
#1
Copy PBYTE issue, AUDIO programming
hi
I want to copy data from alternate location of first PBYTE to another PBYTE
EX: From first PBYTE array location 0-2-4-6-7 etc to another Pbyte array please help
PBYTE pBuffer = (PBYTE)LocalAlloc(LMEM_FIXED, DATA_SIZE);
PBYTE pBufferSec = (PBYTE)LocalAlloc(LMEM_FIXED, DATA_SIZE);
short* pbShortBuffer = reinterpret_cast<short*>( pBuffer );
memcpy(pBufferSec,pBuffer,sizeof(pBuffer));// here i dont know how to copy alternate memory location from source file to pBufferSec
short* pbLeftBuffer = reinterpret_cast<short*>( pBufferSec );
Please give some help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|