English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 20 July 2003, 20:55   #1
stainy
Zone Friend
stainy's Avatar
 
Join Date: Mar 2001
Location: Concord, NC, USA
Age: 46
Posts: 1,392
Send a message via ICQ to stainy Send a message via MSN to stainy
CD player in OS3.9

Hi guys!

I`ve just installed OS3.9 .. looks great btw!!!
but I can`t get my cdrom working.. any of them infact.. there`s a cd player prog on Amidock, but it complains that it can`t find my cdrom.. how do I set it up so I can play audio cd`s on WB ?

I can get my virtual drive working if there`s a virtual disk in there.. thats about it

thanks
stainy is offline  
AdSense AdSense  
Old 20 July 2003, 22:52   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
The OS3.9 PlayCD program does not work with WinUAE. Get another one from Aminet.
thomas is offline  
Old 20 July 2003, 23:33   #3
th4t1guy
Registered User
th4t1guy's Avatar
 
Join Date: Mar 2002
Location: Kansas City, MO, USA
Posts: 531
I wonder if the OS3.9 PlayCD even works at all. I could not get it working on either my cd32, or my A4000 with the ide or scsi cd-rom.
th4t1guy is offline  
Old 21 July 2003, 06:18   #4
Alan_HU
 
Posts: n/a
How about GroovyPlayer? You can download it from here or any Aminet mirror. I checked it and it works for sure, you only need the check the "UAEscsi.device" and the "Use ASPI SCSI layer" options on the Misc page in WinUAE

Actually, I wrote it, so I'm twice as happy that it works
 
Old 21 July 2003, 07:09   #5
Alan_HU
 
Posts: n/a
...just don't mess with the volume controls, they don't seem to work as yet (instead, they will mute the sound no matter what volume level you choose). I hope the SCSI-2 emulation will be improved sometime to include that, too.
 
Old 21 July 2003, 08:13   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,656
Quote:
hope the SCSI-2 emulation will be improved sometime to include
There is really no emulation. SCSI commands are directly forwarded to selected device. IDE ATAPI and SCSI are mostly identical except some advanced SCSI-only commands and some other small differences.

Volume problem is probably caused by IDE CDROM that only supports volume on/off. I can't check SCSI spec now but I think it is not mandatory to support multiple volume levels even on SCSI devices.
Toni Wilen is online now  
Old 21 July 2003, 10:51   #7
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
Quote:
Originally posted by th4t1guy
I wonder if the OS3.9 PlayCD even works at all. I could not get it working on either my cd32, or my A4000 with the ide or scsi cd-rom.
It does work on my A4000 with IDEfix software and a DVD-ROM drive.
thomas is offline  
Old 21 July 2003, 17:56   #8
Alan_HU
 
Posts: n/a
Quote:
Originally posted by Toni Wilen
There is really no emulation. SCSI commands are directly forwarded to selected device. IDE ATAPI and SCSI are mostly identical except some advanced SCSI-only commands and some other small differences.

Volume problem is probably caused by IDE CDROM that only supports volume on/off. I can't check SCSI spec now but I think it is not mandatory to support multiple volume levels even on SCSI devices.
I see. Thanks for the clarification, Toni. Actually, this volume setting code worked on 99% of IDE CDROM's in the Amigas AFAIR (copied directly from the GroovyPlayer source):

Code:
		lea	SCSI_CMD6,a1
		move.b	#SCSI_CMD_MSL,(a1)
		move.b	#$10,1(a1)
		move.b	#20,4(a1)
		moveq	#6,d1
		moveq	#SCSIF_WRITE+SCSIF_AUTOSENSE,d2
		lea	volumemodedata,a0
		moveq	#20,d0
		moveq	#0,d3
		jsr	SCSI_Command

	...

SCSI_Command:
;		SCSI COMMAND

;		input:	a0	data
;			d0	datasize
;			a1	command
;			d1	command size
;			d2	flags
;			d3	1 = asynchronous I/O (FUTURE)
	
SCSI_Command:		move.l	d1,d5
			move.l	a1,a5
			move.l	SCSI_IO,a2
			move.l	#scsi_SIZEOF,IO_LENGTH(a2)
			move.l	#scsi_cmd,IO_DATA(a2)
			move.w	#HD_SCSICMD,IO_COMMAND(a2)
			lea	scsi_cmd,a2
			move.l	a0,scsi_Data(a2)
			move.l	d0,scsi_Length(a2)
			move.w	#0,scsi_SenseActual(a2)
			move.l	#scsi_sense,scsi_SenseData(a2)
			move.w	#SENSE_LEN,scsi_SenseLength(a2)
			move.l	a1,scsi_Command(a2)
			move.w	d1,scsi_CmdLength(a2)
			move.b	d2,scsi_Flags(a2)
			
			move.l	4.w,a6
	sc_sync:	move.l	SCSI_IO,a1
			jsr	DoIO(a6)
	sc_clrcmd:	move.l	SCSI_IO,a1
			move.b	IO_ERROR(a1),d0
			subq.w	#1,d5	; clear command field
	sc_loop:	clr.b	(a5)+
			dbf	d5,sc_loop
			rts
 
	...

SCSI_CMD6:		dc.b	0	; opcode
			dc.b	0,0,0,0	;_b1-b4
			dc.b	0	; control 

	...
volumemodedata: 
vm_head:		dcb.b	4,0
vm_page:		dc.b	0	; page code 0x0E
vm_plength:		dc.b	0	; page length
vm_b2:			dc.b	4	; bit 2: Immed, bit 1: SOTC
vm_b3:			dc.b	0	; reserved
vm_b4:			dc.b	0	; reserved
vm_b5:			dc.b	0 	; bit 7: APRVal, 
					; bit 3-0: format of LBAs/Sec.
vm_bps:			dc.w	0	; logical blocks/second audio playback
vm_out0:		dc.b	0	; lower 4 bits: output port 0
					;_channel selection
vm_vol0:		dc.b	0	; output port 0 volume
vm_out1:		dc.b	0	; lower 4 bits: output port 1
					;_channel selection
vm_vol1:		dc.b	0	; output port 1 volume
vm_out2:		dc.b	0	; lower 4 bits: output port 2
					;_channel selection
vm_vol2:		dc.b	0	; output port 2 volume
vm_out3:		dc.b	0	; lower 4 bits: output port 3
					;_channel selection
vm_vol3:		dc.b	0	; output port 3 volume
vm_end:
Anyway, you're the expert If you have any idea why it doesn't work, I'd be glad to hear.

PS: Sorry for the coding style, I was young, much-much younger...
 
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
BZR Player - a new music player for Win bLAZER Retrogaming General Discussion 910 01 April 2017 22:01
ECS. Make OS3.1 look like OS3.9 without loosing speed. lukassid support.Apps 21 19 February 2013 00:13
Os3.9 or 4.1? Dr. Dude support.Apps 14 10 November 2012 15:13
Os3.5 JohnnyD request.Apps 13 02 June 2010 19:39
FAT Player MikMod v5 (amiga mod player for Nintendo DS) spajdr Amiga scene 0 14 August 2008 21:55

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:48.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.16263 seconds with 11 queries