Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c7992a8d
Commit
c7992a8d
authored
Oct 12, 2009
by
Charles Davis
Committed by
Alexandre Julliard
Oct 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement CDROM_ReadQChannel() on Mac OS.
parent
12a417de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
cdrom.c
dlls/ntdll/cdrom.c
+31
-0
No files found.
dlls/ntdll/cdrom.c
View file @
c7992a8d
...
...
@@ -1007,6 +1007,37 @@ static NTSTATUS CDROM_ReadQChannel(int dev, int fd, const CDROM_SUB_Q_DATA_FORMA
end:
ret
=
CDROM_GetStatusCode
(
io
);
#elif defined(__APPLE__)
SUB_Q_HEADER
*
hdr
=
(
SUB_Q_HEADER
*
)
data
;
int
io
=
0
;
union
{
dk_cd_read_mcn_t
mcn
;
dk_cd_read_isrc_t
isrc
;
}
ioc
;
/* We need IOCDAudioControl for IOCTL_CDROM_CURRENT_POSITION */
if
(
fmt
->
Format
==
IOCTL_CDROM_CURRENT_POSITION
)
{
ERR
(
"This version of Mac OS X does not support IOCDAudioControl
\n
"
);
return
STATUS_NOT_SUPPORTED
;
}
/* No IOCDAudioControl support; just set the audio status to none */
hdr
->
AudioStatus
=
AUDIO_STATUS_NO_STATUS
;
switch
(
fmt
->
Format
)
{
case
IOCTL_CDROM_MEDIA_CATALOG
:
if
((
io
=
ioctl
(
fd
,
DKIOCCDREADMCN
,
&
ioc
.
mcn
))
==
-
1
)
break
;
memcpy
(
data
->
MediaCatalog
.
MediaCatalog
,
ioc
.
mcn
.
mcn
,
kCDMCNMaxLength
);
data
->
MediaCatalog
.
Mcval
=
1
;
break
;
case
IOCTL_CDROM_TRACK_ISRC
:
ioc
.
isrc
.
track
=
fmt
->
Track
;
if
((
io
=
ioctl
(
fd
,
DKIOCCDREADISRC
,
&
ioc
.
isrc
))
==
-
1
)
break
;
memcpy
(
data
->
TrackIsrc
.
TrackIsrc
,
ioc
.
isrc
.
isrc
,
kCDISRCMaxLength
);
data
->
TrackIsrc
.
Tcval
=
1
;
data
->
TrackIsrc
.
Track
=
ioc
.
isrc
.
track
;
}
ret
=
CDROM_GetStatusCode
(
io
);
#endif
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment