Re: How to open the physical block device in CE? by Andrew
Andrew
Tue May 24 16:09:22 CDT 2005
In order to read raw audio data from the CD, the storage driver must support
raw, 2340-byte sector reads. The USB Mass storage driver provided with
Windows CE does not currently provide this support-- you can only read 2048
byte data sectors, used by CDFS and UDFS, using the IOCTL_CDROM_READ_SG
ioctl. The USB Mass storage driver source code is provided with CE and so it
would be possible to modify it to support raw sector reads for audio data.
--
Andrew Rogers
Microsoft Windows CE Core OS
___________________________________________________________
To reply directly, remove "online" from my email address.
This posting is provided "AS IS" with no warranties, and confers no rights.
"ZhangZQ" <zhangzq71@gmail.com> wrote in message
news:u2K7z70VFHA.2684@TK2MSFTNGP09.phx.gbl...
> Andrew Rogers,
>
> If I can open the physical CD drive and can read the data in AudioCD
> sector by sector, then it is possible to play the Audio CD, no matter to
> use Usb mass storage or ATAPI driver, right?
>
> I think the IOCTLs method to play CD is another way that make the audio
> signal directly out from CD drive to sound card line-in, what I want is
> not to get the audio signal but the PCM data from a CD.
>
>
> Regards,
> ZhangZQ
>
>
> "Andrew Rogers [MSFT]" <arogers@online.microsoft.com> wrote in message
> news:umNdALAUFHA.3596@TK2MSFTNGP14.phx.gbl...
>> The USB Mass Storage driver provided with CE does not support audio CDs.
>> The ATAPI driver, however, does support them and provides IOCTLs for
>> playing, pausing, seeking, reading toc, etc from audio CDs (see cdioctl.h
>> in the sdk). Since CE 4.1, the UDFS file system driver has provided
>> simple file navigation for audio CDs (each track appears as a file, as on
>> the desktop). This functionality requires audio CD support provided by
>> the storage driver, so it will not work with provided USB Mass Storage
>> driver.
>>
>> --
>> Andrew Rogers
>> Microsoft Windows CE Core OS
>>
>> ___________________________________________________________
>> To reply directly, remove "online" from my email address.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> "Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> wrote in message
>> news:OP1e5rETFHA.2424@TK2MSFTNGP09.phx.gbl...
>>> No, Windows CE does not provide a File system for CD audio. You can use
>>> OpenStore() and do it directly or you can create an installable
>>> FileSystem for it as you see fit.
>>>
>>> --
>>> Steve Maillet
>>> EmbeddedFusion
>>> www.EmbeddedFusion.com
>>> smaillet at EmbeddedFusion dot com
>>>
>>>
>>
>>
>
>