- Timestamp:
- Aug 17, 2007 9:49:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/dsound.c
r1041 r1421 52 52 { 53 53 pjmedia_snd_dev_info info; 54 LPGUID lpGuid;54 GUID guid; 55 55 }; 56 56 … … 159 159 * Create DirectSound device. 160 160 */ 161 hr = DirectSoundCreate( dev_info[dev_id].lpGuid, &ds_strm->ds.play.lpDs,161 hr = DirectSoundCreate(&dev_info[dev_id].guid, &ds_strm->ds.play.lpDs, 162 162 NULL); 163 163 if (FAILED(hr)) … … 278 278 * Creating recorder device. 279 279 */ 280 hr = DirectSoundCaptureCreate( dev_info[dev_id].lpGuid,280 hr = DirectSoundCaptureCreate(&dev_info[dev_id].guid, 281 281 &ds_strm->ds.capture.lpDs, NULL); 282 282 if (FAILED(hr)) … … 602 602 */ 603 603 for (index=0; index<dev_count; ++index) { 604 if ( dev_info[index].lpGuid == lpGuid)604 if (pj_memcmp(&dev_info[index].guid, lpGuid, sizeof(GUID))==0) 605 605 break; 606 606 } … … 617 617 strncpy(dev_info[index].info.name, lpcstrDescription, max); 618 618 dev_info[index].info.name[max-1] = '\0'; 619 dev_info[index].lpGuid = lpGuid;619 pj_memcpy(&dev_info[index].guid, lpGuid, sizeof(GUID)); 620 620 dev_info[index].info.default_samples_per_sec = 44100; 621 621
Note: See TracChangeset
for help on using the changeset viewer.