Skip to content

Commit

Permalink
Separate L/R channel volume control capability
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuanx committed Jul 24, 2023
1 parent c32f5aa commit cde06d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ NOTE: It actually can also work on Win95/98 if you follow the extra procedure be

# Revisions:

v.2023.07.24
- Correctly report stereo CD separate channel volume control capability.

v.2023.06.01
- Fix MCI_PAUSE & MCI_RESUME when not playing.
- Fix MCI_STATUS_LENGTH when time format is set to TMSF.
Expand Down
5 changes: 2 additions & 3 deletions ogg-winmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)

char *last = strrchr(music_path, '.');
if (last) {
*last = '\0';
strcat(last, ".ini");
strcpy(last, ".ini");

cddaVol = GetPrivateProfileInt("OGG-WinMM", "CDDAVolume", 100, music_path);
midiVol = GetPrivateProfileInt("OGG-WinMM", "MIDIVolume", 100, music_path);
Expand Down Expand Up @@ -860,7 +859,7 @@ MMRESULT WINAPI fake_auxGetDevCapsA(UINT_PTR uDeviceID, LPAUXCAPS lpCaps, UINT c
lpCaps->vDriverVersion = 1;
strcpy(lpCaps->szPname, "ogg-winmm virtual CD");
lpCaps->wTechnology = AUXCAPS_CDAUDIO;
lpCaps->dwSupport = AUXCAPS_VOLUME;
lpCaps->dwSupport = AUXCAPS_LRVOLUME | AUXCAPS_VOLUME;

return MMSYSERR_NOERROR;
}
Expand Down

0 comments on commit cde06d5

Please sign in to comment.