flat assembler
Message board for the users of flat assembler.

Index > Heap > ReadFile cdrom

Author
Thread Post new topic Reply to topic
b1528932



Joined: 21 May 2010
Posts: 287
b1528932
When i call ReadFile on cdrom with data, it works fine. When i use it on cd containig audion, it doesnt fail but read 0 bytes. I used many sector sizes cdrom can ba, and only 4048 isnt returning GLA 87.


Why ReadFile fail to read data from audio cd? How data on audioncd is diffrent, preventing the read of it? I would understand if what i read it without order, but why i actually CANT read it?
Post 03 Feb 2011, 18:51
View user's profile Send private message Reply with quote
asmhack



Joined: 01 Feb 2008
Posts: 431
asmhack
All you need is a file system driver that will allow you to access audio cd tracks as regular files.
Post 04 Feb 2011, 11:54
View user's profile Send private message Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932
so accessing (any means) data cd and audio cd is no diffrent? I can read sectors exactly same manner?

For example, i would like to create perfect copy (withoud cdrom processing ecc) of cd, there is no diffrence between audio and data cd? Just store sector by sector and i get file size equal to capacidy of cd rom/dvd rom?
Post 04 Feb 2011, 14:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
b1528932 wrote:
so accessing (any means) data cd and audio cd is no diffrent? I can read sectors exactly same manner?

For example, i would like to create perfect copy (withoud cdrom processing ecc) of cd, there is no diffrence between audio and data cd? Just store sector by sector and i get file size equal to capacidy of cd rom/dvd rom?
There are many existing programs out that that can do this. Google is your friend if you want to find one. But perfect copies may not be possible in all situations. Some CDs are 800MB and cannot be written to a 700MB writable. Also some CDs have "special" sectors that are deliberately faulty, you won't be able to easily recreate those with standard commercial equipment.
Post 04 Feb 2011, 14:54
View user's profile Send private message Visit poster's website Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler

_________________
This is a block of text that can be added to posts you make.
Post 05 Feb 2011, 09:37
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.