Changeset 3852 for trunk/src/winmm/dwaveout.cpp
- Timestamp:
- Jul 18, 2000, 8:34:43 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/dwaveout.cpp
r3780 r3852 1 /* $Id: dwaveout.cpp,v 1.2 7 2000-06-30 08:40:05sandervl Exp $ */1 /* $Id: dwaveout.cpp,v 1.28 2000-07-18 18:34:41 sandervl Exp $ */ 2 2 3 3 /* … … 119 119 ulError = 0; 120 120 selCallback = 0; 121 volume = 0xFFFFFFFF;121 volume = defvolume; 122 122 State = STATE_STOPPED; 123 123 … … 423 423 wmutex->leave(); 424 424 425 //write buffers to DART; starts playback 425 426 MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle, 426 427 MixBuffer, … … 529 530 wmutex->leave(); 530 531 curbuf = curPlayBuf; 532 531 533 for(i=0;i<PREFILLBUF_DART;i++) { 532 534 MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle, &MixBuffer[curbuf], 1); … … 776 778 MCI_SET_PARMS msp = {0}; 777 779 780 dprintf(("DartWaveOut::setVolume %x %x", ulVolL, ulVolR)); 778 781 volume = ulVol; 779 782 … … 804 807 } 805 808 /******************************************************************************/ 809 //Called if waveOutSetVolume is called by the application with waveout handle NULL 810 //Sets the default volume of each waveout stream (until it's volume is changed 811 //with an appropriate waveOutSetVolume call) 812 /******************************************************************************/ 813 void DartWaveOut::setDefaultVolume(ULONG volume) 814 { 815 defvolume = volume; 816 } 817 /******************************************************************************/ 806 818 /******************************************************************************/ 807 819 DartWaveOut *DartWaveOut::waveout = NULL; 808 820 ULONG DartWaveOut::defvolume = 0xFFFFFFFF; 821
Note:
See TracChangeset
for help on using the changeset viewer.