Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with writing CD-XA (VCD)



Hello,

I want to write vcds. Therfore I need to write 2 tracks within 1 session in
DAO-Mode. The code I have written is attached. But here is the problem.
Under jaguar I managed to write a vcd in TAO-Mode with a pregap of 150
sectors before the 2nd track. But every time I want to write without that
pregap, the writer does seem to start writing and I get a
Bufferunderrun-Error. Now in Panther there is another problem. Now the
writer does not write in TAO-Mode anymore. Everytime I insert a pregap, this
pregap is ignored and it wants to write Disc-At-Once. But this of course
fails due to the problem I've explained in above.

Is this a bug in the Discrecording API or am I doing something wrong? Maybe
somebody can help me, because my software does not work anymore in panther.

Thanks
Martin



--

CODE:

@implementation ImageISODataTrack

- (id) initWithProducer:(id)producer
{
if ((self = [super initWithProducer:producer]) != nil)
{
NSMutableDictionary* properties = [[NSMutableDictionary alloc]
init];

[properties setObject:[(ImageDataProducer*)producer length]
forKey:DRTrackLengthKey];
[properties setObject:[NSNumber numberWithInt:2048]
forKey:DRBlockSizeKey];
[properties setObject:[NSNumber numberWithInt:16]
forKey:DRDataFormKey];
[properties setObject:[NSNumber numberWithInt:10]
forKey:DRBlockTypeKey];
[properties setObject:[NSNumber numberWithInt:4]
forKey:DRTrackModeKey];
[properties setObject:[NSNumber numberWithInt:0x20]
forKey:DRSessionFormatKey];

[self setProperties:properties];
[properties release];
}

return self;
}

@end


@implementation ImageDataTrack

- (id) initWithProducer:(id)producer
{
if ((self = [super initWithProducer:producer]) != nil)
{
NSMutableDictionary* properties = [[NSMutableDictionary alloc]
init];

[properties setObject:[(ImageDataProducer*)producer length]
forKey:DRTrackLengthKey];
[properties setObject:[NSNumber numberWithInt:2332]
forKey:DRBlockSizeKey];
[properties setObject:[NSNumber numberWithInt:32]
forKey:DRDataFormKey];
[properties setObject:[NSNumber numberWithInt:13]
forKey:DRBlockTypeKey];
[properties setObject:[NSNumber numberWithInt:4]
forKey:DRTrackModeKey];
[properties setObject:[NSNumber numberWithInt:0x20]
forKey:DRSessionFormatKey];

[self setProperties:properties];
[properties release];
}

return self;
}

@end
_______________________________________________
discrecording mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/discrecording
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.