sysprogs / WinCDEmu

GNU Lesser General Public License v3.0
1.06k stars 149 forks source link

Support for mixed mode CD images (data + audio) #26

Open lxkurko opened 4 years ago

lxkurko commented 4 years ago

It seems that WinCDEmu doesn't support mixed-mode disc images at the moment. Such discs contain a data track and one or more audio tracks and they are relatively common with older games.

I tested this with BIN+CUE images, made with Linux tools, and IsoBuster's extended ISO+CUE images, and none worked.

Some virtual drive software, such as Daemon Tools, support mixed-mode images. However, WinCDEmu is prefered by many people because it's simple, open-source and free of adware and other unwanted stuff.

JuniorJPDJ commented 3 years ago

Could you please show me some of CUE files you have in mind? What Linux tools you have in your mind? ImgBurn and PowerISO seems to create weird files.

buttercookie42 commented 2 years ago

This is an example of such a disc belonging to an older game:

FILE "rc racers.bin" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    INDEX 01 65:07:26
  TRACK 03 AUDIO
    INDEX 01 65:39:34
  TRACK 04 AUDIO
    INDEX 01 66:10:45
  TRACK 05 AUDIO
    INDEX 01 66:42:23
  TRACK 06 AUDIO
    INDEX 01 67:14:43
  TRACK 07 AUDIO
    INDEX 01 67:47:13
  TRACK 08 AUDIO
    INDEX 01 68:20:02
  TRACK 09 AUDIO
    INDEX 01 68:51:70
  TRACK 10 AUDIO
    INDEX 01 69:23:20
  TRACK 11 AUDIO
    INDEX 01 69:55:00
  TRACK 12 AUDIO
    INDEX 01 70:22:35
  TRACK 13 AUDIO
    INDEX 01 70:50:43
  TRACK 14 AUDIO
    INDEX 01 71:23:51
  TRACK 15 AUDIO
    INDEX 01 71:55:61
  TRACK 16 AUDIO
    INDEX 01 72:27:30
ajalberd commented 2 years ago

Seconded, the way WinCDEmu seems to mount mixed-mode CDs is to only mount the first track (data).

kloverde commented 1 year ago

The example posted above is the cleanest proposal. However, I may have discovered a shortcut that could speed up the addition of mixed-mode support.

According to https://www.vogons.org/viewtopic.php?t=68206, DOSBox supports mixed-mode cuesheets that reference a WAV file. From the link:

FILE "WARCRAFT2_EXPANSION.ISO" BINARY
  TRACK 01 MODE1/2048
    INDEX 01 00:00:00
FILE "WARCRAFT2_EXPANSION.WAV" WAVE
  TRACK 02 AUDIO
    INDEX 01 00:00:00
  TRACK 03 AUDIO
    INDEX 01 00:06:02
  TRACK 04 AUDIO
    INDEX 01 06:36:61
  TRACK 05 AUDIO
    INDEX 01 13:48:48
  TRACK 06 AUDIO
    INDEX 01 17:30:54
  TRACK 07 AUDIO
    INDEX 01 21:07:07
  TRACK 08 AUDIO
    INDEX 01 22:05:10
  TRACK 09 AUDIO
    INDEX 01 22:42:71
  TRACK 10 AUDIO
    INDEX 01 23:40:25
  TRACK 11 AUDIO
    INDEX 01 29:37:26
  TRACK 12 AUDIO
    INDEX 01 33:13:72
  TRACK 13 AUDIO
    INDEX 01 36:49:73
  TRACK 14 AUDIO
    INDEX 01 40:19:56
  TRACK 15 AUDIO
    INDEX 01 43:54:19
  TRACK 16 AUDIO
    INDEX 01 45:21:41
  TRACK 17 AUDIO
    INDEX 01 46:04:04
  TRACK 18 AUDIO
    INDEX 01 46:49:48

I don't have a DOS game to verify with.

It might be possible to just copy the relevant code from DOSBox. WinCDEmu is GPLv3. The DOSBox source files say that they're licensed under v2 "or (at your option) any later version."