View previous topic :: View next topic |
Author |
Message |
Idonex Visitor

Joined: 21 Jun 2003 Posts: 7
|
Posted: Sat Jun 21, 2003 3:11 pm Post subject: CD sound only through CDROM headphone socket!? |
|
|
Hi,
I'm using the latest version of Magic Engine on XP Pro and i have a weird issue that affects all CD games, namely i have no CD Audio unless i plug headphones directly into my CDROM drive.
Here's what i have done:
1) Yes, the CDROM IS connected to my Audigy. I listen to CDs on my CDROM all the time.
2) Here is the log.txt file with the relevant details:
Code: | checking sound card mixer ("SB Audigy Audio [A800]" v5.10)...
+SPEAKERS: vol = 100 [00000000/0000FFFF]
-WAVEOUT [ 0] vol = 98 [00000000/0000FFFF]
-SYNTHESIZER [ 1] vol = 100 [00000000/0000FFFF]
-DIGITAL [ 2] vol = 49 [00000000/0000FFFF]
-ANALOG [ 3] vol = 49 [00000000/0000FFFF]
-COMPACTDISC [ 4] vol = 99 [00000000/0000FFFF] (selected as CD input line)
-LINE [ 5] vol = 49 [00000000/0000FFFF]
-ANALOG [ 6] vol = 49 [00000000/0000FFFF]
-TELEPHONE [ 7] vol = 49 [00000000/0000FFFF]
-MICROPHONE [ 8] vol = 49 [00000000/0000FFFF]
-WAVEOUT [ 9]
+WAVEIN: |
So i set my pce.ini to:
Code: |
;
; CD-ROM audio input line
; --
; 0 -> first audio input line
; 1 -> second audio input line
; ...
;
; (see the log.txt file to find out what are the line numbers)
;
cd_audio_input_line=4 |
Is this right?
3) I have tried it by using the real System Card 3 and that didn't work either.
4) My CD games are fine, and the log.txt fine reports 0 errors for every CD game (yep even Dracula X!)
5) I've tried unticking "Use Digital Audio" in the CDROM properties but that didn't help.
Any ideas, or anything i've missed?
Thanks! |
|
Back to top |
|
 |
Kaminari Elder

Joined: 19 Apr 2002 Posts: 1432 Location: Paris, France
|
Posted: Sat Jun 21, 2003 5:00 pm Post subject: |
|
|
Hi,
Your drive is connected to your motherboard through an IDE flat cable, which allows CD audio playing via the digital audio mode you mentioned. Windows XP is natively set in DA mode, that's why you can listen to your regular audio CD.
But Magic Engine only works in good old analogic audio mode and thus requires a small CD-ROM audio cable connected from your drive to your sound card (which is most of the time missing on XP systems). You should get one, or wait for MagicEngine 1.0 which will support digital audio mode.
> cd_audio_input_line=4
It's better to leave the line blank (just delete the number). MagicEngine does a better job at finding automatically the right CD audio input. And don't forget to set the option debug_log=yes if you want the CD volume to fade in and out properly. |
|
Back to top |
|
 |
Idonex Visitor

Joined: 21 Jun 2003 Posts: 7
|
Posted: Sat Jun 21, 2003 5:15 pm Post subject: |
|
|
Hmm. I'm pretty sure the audio lead is connected from the CDROM to the soundcard but i'll double check anyway! Also, the CDA from Sega CD games run fine in Gens, although i dont knowif this uses a different playback method.  |
|
Back to top |
|
 |
Kaminari Elder

Joined: 19 Apr 2002 Posts: 1432 Location: Paris, France
|
Posted: Sat Jun 21, 2003 5:33 pm Post subject: |
|
|
Yup, Gens works in digital audio mode and doesn't need the audio cable.
Could you post your pce.ini file here? |
|
Back to top |
|
 |
Idonex Visitor

Joined: 21 Jun 2003 Posts: 7
|
Posted: Sat Jun 21, 2003 9:01 pm Post subject: |
|
|
Hi, I just double checked and the audio out from my CDROM is definitely connected to my soundcard. Here is the pce.ini
Code: |
# ----
# emulation settings
# ----
[emulation]
;
; soft reset (RUN + SELECT)
; --
; y -> enabled [default]
; n -> disabled
;
soft_reset=y
;
; frame delay
; --
; adjust video frame delay (15000-18000 µs)
;
; 16393 -> 61 Hz
; 16667 -> 60 Hz [default]
; 16949 -> 59 Hz
;
frame_delay=
# ----
# sound settings
# ----
#
[sound]
;
; sound
; --
; y -> enabled [default]
; n -> disabled
;
sound=y
;
; frequency
; --
; set sound frequency (8000 - 48000)
;
frequency=44100
;
; 16-bit
; --
; y -> enabled [16-bit]
; n -> disabled [ 8-bit]
;
16bit=y
;
; stereo
; --
; y -> enabled [stereo]
; n -> disabled [mono]
;
stereo=y
;
; interpolation
; --
; y -> enabled
; n -> disabled [default]
;
interpolation=n
;
; interpolation level
; --
; 1 -> light interpolation
; ..
; 15 -> full interpolation
;
interpolation_level=1
;
; delay
; --
; adjust sound buffer delay (2 - 30), in 1/60th of second
; (best delay is auto detected by default)
;
delay=
;
; CD-ROM audio input line
; --
; 0 -> first audio input line
; 1 -> second audio input line
; ...
;
; (see the log.txt file to find out what are the line numbers)
;
cd_audio_input_line=
;
; master audio volume
; --
; 0-100
;
master_audio_volume=
;
; fx audio volume
; --
; 0-100
;
fx_audio_volume=
;
; cd audio volume
; --
; 0-100
;
cd_audio_volume=80
# ----
# video settings
# ----
#
[video]
;
; windowed mode
; --
; select windowed mode at startup
;
; y -> windowed
; n -> fullscreen [default]
;
windowed=n
;
; fullscreen stretch
; --
;
; y -> enable
; n -> disable [default]
;
fullscreen=y
;
; fullscreen stretch mode
; --
;
; 0 -> always
; 1 -> only for 1x1 display size
; 2 -> only for 2x2 display size [default]
;
fullscreen_mode=2
;
; bilinear filtering
; --
;
; y -> enable
; n -> disable [default]
;
; (this option doesn't work with all the video card)
;
filtering=y
;
; display size
; --
: select display size at startup
;
; 0 -> 1x1 zoom
; 1 -> 2x2 zoom [default]
;
size=1
;
; display zoom
; --
; 0 -> software [default]
; 1 -> hardware
;
zoom=1
;
; auto frame skip
; --
; y -> enabled
; n -> disabled [default]
;
auto_frame_skip=n
;
; video sync
; --
; y -> enabled
; n -> disabled [default]
;
vsync=n
;
; fullscreen screen resolutions
; --
; custom screen resolutions to be used for the different
; PC-Engine video modes (256x224, 320x224, and 352x224)
;
; (by default a resolution of 640x480 is used for all the
; video modes)
;
res_256=640,480
res_320=640,480
res_352=640,480
;
; windowed screen resolutions
; --
; custom screen resolutions to be used for the different
; PC-Engine video modes (256x224, 320x224, and 352x224)
; in windowed mode
;
win_res_256=256,224
win_res_320=320,224
win_res_352=352,224
;
; auto screen resolution lock
; --
; enable/disable auto screen resolution locking
; for games that change resolution often like
; Military Madness
;
; y -> auto lock [default]
; n -> no resolution lock
;
res_lock=y
# ----
# TV mode settings
# ----
[tv_mode]
;
; tv_mode
; --
; y -> start in TV mode
; n -> start in normal mode [default]
;
tv_mode=n
;
; wide screen
; --
; y -> enabled
; n -> disabled [default]
;
wide=n
;
; horizontal interpolation
; --
; y -> enabled [default]
; n -> disabled
;
interpolation=y
;
; scanlines:
; --
; 0 -> 100% (black scanlines)
; 1 -> 75%
; 2 -> 50%
; 3 -> 25% [default]
; 4 -> 0% (no scanlines)
;
scanlines=3
;
; gamma correction:
; --
; adjust gamma level (0 - 5)
;
gamma=1
;
; brightness control:
; --
; adjust brightness (0 - 8)
;
brightness=1
# ----
# gamepad settings
# ----
[gamepad]
;
; gamepad
; --
; y -> enabled [default]
; n -> disabled
;
gamepad=y
;
; auto fire speed
; --
; 1 (fast) to 10 (slow)
;
auto_fire_speed=2
;
; auto calibration control
; --
; 50% (default) to 90%
;
auto_calibration=70
# ----
# keyboard settings
# ----
[keyboard]
;
; type of keyboard
; --
; 0 -> AZERTY
; 1 -> QWERTY [default]
; 2 -> QWERTZ
;
type=1
;
; unlock numeric keypad
; --
; unlock numeric keypad keys 0 to 9, /, *, . and ENTER
;
; y -> unlocked
; n -> locked [default]
;
numpad=n
;
; unlock numeric keys
; --
; unlock keys 0 to 9
;
; y -> unlocked
; n -> locked [default]
;
numkeys=n
;
; unlock ctrl keys
; --
; unlock INS, DEL, HOME, END, PGUP, PGDOWN control keys
;
; y -> unlocked
; n -> locked [default]
;
ctrlkeys=n
;
; ESC key mode
; --
; change ESC key function
;
; 0 -> automatic mode : [default]
; --------------
; when the emulator is started from a shell or from a front-end
; program pressing ESC will exit the emulator, but when
; the emulator is started by double-clicking on its icon
; pressing ESC will open the menu screen
;
; 1 -> GUI mode :
; ---------
; pressing ESC will always open the menu screen
;
; 2 -> exit mode :
; ---------
; pressing ESC will always exit the emulator
;
esc_key_mode=0
;
; auto repeat delay
; --
; 1 (very fast) to 8 (slow)
;
auto_repeat_delay=2
;
; auto repeat rate
; --
; number of time the key is repeated per second (1 - 16)
;
auto_repeat_rate=9
# ----
# load menu settings
# ----
[load]
;
; drive list
; --
; list of disk drives displayed in the load menu
;
drive_list=CDEF
;
; ROM list titles
; --
; enable ROM filenames to be used as title in the load list
;
; y -> enable
; n -> disable [default]
;
use_rom_file_name=n
# ----
# misc. settings
# ----
[misc]
;
; number of state file
; --
; 4 - 8
;
nb_state_file=4
;
; state file compression
; --
; y -> enable [default]
; n -> disable
;
compress_state_file=y
;
; backup ram format
; --
; 0 -> old format (backup.ram)
; 1 -> new format (backup.dat, backup.idx) [default]
;
backup_ram=1
;
; enable debug log file
; --
; y -> enable [default]
; n -> disable
;
debug_log=y
# ----
# CD-ROM settings
# ----
[cdrom]
;
; CD-ROM drive
; --
; 0 -> first CD-ROM drive [default]
; 1 -> second CD-ROM drive
; ...
;
drive=0
;
; CD-ROM drive letter
; --
; (Windows 2000/XP only)
;
; D:
; E:
; ...
;
drive_letter=E:
;
; SCSI driver timeout
; --
; change the delay that the emulator waits when accessing
; the CD-ROM SCSI driver, 0 is infinite delay
;
timeout=0
;
; CD-ROM cache
; --
; y -> enable
; n -> disable [default]
;
cache=n
;
; CD-ROM cache size
; --
; in KB [default is 512KB]
;
cache_size=512
# ----
# path settings
# ----
[path]
;
; system card paths
; --
;
system_card_1=
system_card_2=
system_card_3=D:\Emulators\magic\syscard3.pce
system_card_4=
;
; config path
; --
; (pce.cfg,
; backup.dat, backup.idx,
; games.idx,
; time.dat,
; k12x12.fnt, k16x16.fnt)
;
config=
;
; screenshot path
; --
;
screenshots=
;
; saved game path
; --
;
saved_games=
|
|
|
Back to top |
|
 |
Kaminari Elder

Joined: 19 Apr 2002 Posts: 1432 Location: Paris, France
|
Posted: Sat Jun 21, 2003 10:15 pm Post subject: |
|
|
Code: | # ----
# CD-ROM settings
# ----
[cdrom]
;
; CD-ROM drive
; --
; 0 -> first CD-ROM drive [default]
; 1 -> second CD-ROM drive
; ...
;
drive=0
;
; CD-ROM drive letter
; --
; (Windows 2000/XP only)
;
; D:
; E:
; ...
;
drive_letter=E: |
The first option drive=0 is for Win9x. Leave it blank (no number) since you're under XP. Specifying both options can lead to unexpected conflicts in the audio CD initialization.
Is your E: drive a CD-ROM or a DVD-ROM? The latter is known to cause audio CD problems to many people (under MagicEngine, at least). |
|
Back to top |
|
 |
Idonex Visitor

Joined: 21 Jun 2003 Posts: 7
|
Posted: Sun Jun 22, 2003 11:42 am Post subject: |
|
|
Yeah it's a DVDROM drive. I managed to fix the sound problem by removing the audio connection from the DVDROM drive and putting it on my SCSi CDRW. Now i get CDA in games!
But for some reason loading CD games from the CDRW is really slow and I can hear the drive spin up and down all the time.
Is there something that needs to be done in the ini file?
Thanks for all the help so far btw  |
|
Back to top |
|
 |
Kaminari Elder

Joined: 19 Apr 2002 Posts: 1432 Location: Paris, France
|
Posted: Sun Jun 22, 2003 4:02 pm Post subject: |
|
|
Recorders are traditionally slower than read-only devices. You might get some noticeable speed up by setting the read cache as follows:
Code: | ;
; CD-ROM cache
; --
; y -> enable
; n -> disable [default]
;
cache=y
;
; CD-ROM cache size
; --
; in KB [default is 512KB]
;
cache_size=2048 |
|
|
Back to top |
|
 |
Specineff Elder

Joined: 29 Aug 2002 Posts: 258 Location: Arizona
|
Posted: Fri Jun 27, 2003 12:18 am Post subject: |
|
|
Hey Kaminari, just for the record...
I just checked my CDROM drive properties as I'm playing Drac X in windowed mode...
DIGITAL PLAYBACK IS ON AND MUSIC CAN BE HEARD ALL RIGHT!!
I noticed that when I deactivate Digital Playback sound balances most of the way to the left speaker, and when it's on, sound seems evenly distributed between the two. WTF??
God, I love my Frankestein Box! _________________ Proud owner of a Dreamcast, Saturn, Turbo Duo and a registered version of ME since 2002. |
|
Back to top |
|
 |
Kaminari Elder

Joined: 19 Apr 2002 Posts: 1432 Location: Paris, France
|
Posted: Fri Jun 27, 2003 3:29 am Post subject: |
|
|
Hi Specineff!
Digital playback is activated on my system as well. Activating digital playback doesn't mean that analog playback won't work anymore. It's just that you're setting it as the default playback method in Windows. Applications can still override this setting and force analog playback. That's what Magic Engine and T-98 Next do.
Digital playback is the Graal of CD playing for many reasons, the most important one being that audio mode is not limited to 1x anymore and can go as fast as the data mode reading. That means no speed variation when a game is switching from a data track (say in 40x) to an audio track (1x) and vice versa. Many seconds are wasted in the process, with a great risk that the audio tracks are desynchronized when the program ask them to start.
The downside is that digital playback means audio streaming, thus heavy CPU stress. On modest configurations, you may hear some very unpleasant cracks. Not to mention the furious noise of the fast-spinning drive which can become painful if it's so loud you can't hear the CD music...
Last but not least, not all drives (especially ATAPI) correctly support digital playback. With some of them, Magic Engine can even refuse to run if this mode is activated by default. It happened to me before. But the next version should make it a thing of the past ;-) |
|
Back to top |
|
 |
Specineff Elder

Joined: 29 Aug 2002 Posts: 258 Location: Arizona
|
Posted: Mon Jun 30, 2003 3:11 am Post subject: |
|
|
Interesting. I'm counting the seconds for V 1.00 release.  _________________ Proud owner of a Dreamcast, Saturn, Turbo Duo and a registered version of ME since 2002. |
|
Back to top |
|
 |
|