Ignore:
Timestamp:
Jun 16, 2006 3:54:43 PM (18 years ago)
Author:
bennylp
Message:

Optimizations mostly in the conference bridge (gained more than 3x faster)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/dsound.c

    r470 r513  
    369369    if SUCCEEDED(hr) {  
    370370        // Read from pointers.  
    371         CopyMemory(lpbSoundData, lpvPtr1, dwBytes1);  
     371        pj_memcpy(lpbSoundData, lpvPtr1, dwBytes1);  
    372372        if (lpvPtr2 != NULL) 
    373             CopyMemory(lpbSoundData+dwBytes1, lpvPtr2, dwBytes2);  
     373            pj_memcpy(lpbSoundData+dwBytes1, lpvPtr2, dwBytes2);  
    374374         
    375375        // Release the data back to DirectSound.  
     
    408408    }  
    409409    if SUCCEEDED(hr) {  
    410         CopyMemory(lpvPtr1, lpbSoundData, dwBytes1);  
     410        pj_memcpy(lpvPtr1, lpbSoundData, dwBytes1);  
    411411        if (NULL != lpvPtr2)  
    412             CopyMemory(lpvPtr2, lpbSoundData+dwBytes1, dwBytes2);  
     412            pj_memcpy(lpvPtr2, lpbSoundData+dwBytes1, dwBytes2);  
    413413         
    414414        hr = IDirectSoundBuffer_Unlock(lpDsb, lpvPtr1, dwBytes1, lpvPtr2, dwBytes2);  
Note: See TracChangeset for help on using the changeset viewer.