-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue using BIN/CUE audio cd files with Otari Digital Master #258
Comments
@WhatIsTheWeather thanks for the report. Everything in the log looks great until the last (unknown) command:
|
Sounds good to me. I will keep an eye on this issue for any updates on the post. Happy to test any test firmware that is created to help diagnose the issue further. Thanks. |
Just here to confirm that I am still experiencing this issue when trying to use audio cd bin/cue files with the latest release.
|
After searching a bit I found that the 0xD8 SCSI command is vendor specific to Plextor CD-ROM drives. Did the Otari digital master unit originally ship with a Plextor CD-ROM drive? In any case it will be hard to recreate the command as I couldn't find the structure of the command. |
@WhatIsTheWeather could you try this firmware, hopefully it will print out the command in full, |
Thanks for getting back to me. Yeah, the Otari originally shipped with two Plextor Ultraplex SCSI CD-ROM drives. Here is a link to the model - https://www.otari.com/support/vintage/dp3/index.html The unit plays audio cds at 16x normal speed for tape duplication. It is possible to play two audio cds simultaneously to record both sides at the same time, when doing this the unit outputs the audio for the b side in reverse. Here is the debug log from the test firmware |
@WhatIsTheWeather This probably won't work, not exactly sure what the block size should be for the Plextor 0xD8 read. The way the docs read, it seems to output raw CD data, so that's what is attempted here. I'll push up the code changes I've made to, if you feel like trying your hand at the source code. The code is on this branch https://github.com/ZuluSCSI/ZuluSCSI-firmware/tree/plextor-d8h-vendor-cmd |
This is a CD data read that is mainly for Plextor CDROM drives. It is a vendor CD Data read used mainly in duplicating CDs. It support reading more raw data then the other CD Read commands for better CD cloning. This is an attempt to address issue #258
Thanks for that, I have just tried the test firmware and it is somewhat working. The bin/cue is getting played for a few seconds but then the unit displays a disc read error on the LCD. After checking the the recorded tape the audio seems to be playing but with skips and glitches before stopping. I have also tried enabling SCSI-2 support thinking that might help but with no luck there. Here is the log file |
@WhatIsTheWeather
and
|
Thanks for the update. I have tried the new firmware with both PlextorBytesPerSector values and the results are the same. The machine starts playing the audio for around 7-8 seconds and then displays disc read error on the LCD. When checking the recorded tape the audio seems to be still slightly glitchy and skipping forward 1-2 seconds at regular intervals. I have attached the latest log file using the v3 firmware below. I'm wondering if there is some type of delay happening between each d8 command which is causing the 1-2 second skipping of the audio? The audio is slightly glitchy but seems to be playing back correctly aside from the 1-2 second skips and a bit of additional noise. |
@WhatIsTheWeather |
No worries, I appreciate that you are looking into this. I have just tested again with the v4 build and using PlextorBytesPerSector=2048 seems to sort out the skipping issue, however the unit still has disc read errors at around the same point of roughly 8 seconds of copy time which translates into around 120 seconds of duplicated audio. Maybe there is some type of error checking going on but I cannot see anything related in the logs. Attached is the most recent log |
I think 2352 bytes is the actual recording size for audio CDs, but what is happening is the SD card is based on 2048 bytes per block. The 2352 bytes is causing unaligned reads from the SDCard which slow the system causing the skips. I'm going to try doing two aligned reads and extracting the the 2352 bytes from there. |
@WhatIsTheWeather
|
With this firmware I am unable to load the audio at all, with a disc read error appearing when loading up the bin/cue. I have set PlextorBytesPerSector=2352 in the INI but am unfortunately having no luck with this change. Here is the recent log. |
Haven't forgot this, should have a binary to test tomorrow. |
@WhatIsTheWeather By any chance could you post your |
@WhatIsTheWeather I tested a ZuluSCSI with a windows app that dumps data via the SCSI 0xD8 command (px_d8.exe) in hex and checked it against a .bin file via a hex editor and it matches. It would be helpful if you could post your .cue file so I can double check that the ZuluSCSI should dump the correct data. |
Thanks for the update. I have just tested this recent build and it seems to be reading the data from the bin/cue correctly without any audio glitches. However the unit exhibits a disk read error after around 60 seconds which would be 16 minutes into the audio as the unit outputs at 16x normal speed. Within the bin/cue there are two audio tracks, track 1 for side A and track 2 for side B. When the digital master has finished the A side track it should display a notification on the LCD telling the user to flip the tape to the B side and press start on the unit to start recording the b side.b I have recorded two subsequent tapes and it seems to be dropping out at the same point on the first track each time. Here are the bin/cue files I have been using, which was created using Sonoris audio mastering software. Had to upload via wetransfer as GitHub would not let me upload it internally. Here is the recent ZuluSCSI log. Thanks for the help with this, I appreciate you taking the time to look into this. |
@WhatIsTheWeather could you run the recording a few times with debug on, capturing the log each time? I'd like to see if it stops at the same sector or is random. Thanks |
I have just tested it again, once with debug off and it seems to run without errors with debug mode switched off, however with debug mode enabled it seems to error out at exactly the same point when trying multiple times. So I think you are right in saying it is probably a speed issue. This is the point in the debug log which it seems to error out at every time. Total IN: 602112 OUT: 0 CHECKSUM: 7649 Here are the three logs:
Thanks. |
@WhatIsTheWeather |
Thanks for all the help with this, it is very much appreciated! Do you think having debug mode enabled was causing the slowdowns before erroring out? When I get a free moment over the weekend I will have a look at the output of the master unit with an oscilloscope to check how the waveforms are looking. I understand audio cds do not have error correction so any errors would be introduced as glitches and noises in the audio before the machine errors. |
I have just tried the latest ZuluSCSI firmware 2024.03.07 and the audio on the b side has started erroring out during playback, I have also retested the custom firmware and that works with no issue. Do you know what could be causing this issue with the latest firmware? I have not enabled debug logs as that seemed to be contributing to the previous issue with the test firmware so it may be hard to diagnose the issue. I am using the same zuluscsi.ini with both versions and have debug logs disabled when using the latest firmware. The A side seems to playback fine but the B side seems to error out at the same point every time with the latest firmware. There are no perceivable audio glitches but it seems to cut off at the same point each time. |
@WhatIsTheWeather can you explicitly state which version of the firmware you were using where you are NOT experiencing this issue? |
https://github.com/ZuluSCSI/ZuluSCSI-firmware/actions/runs/7734296068 - this is the version of the firmware that seems to work without issue when debug mode is turned off. The latest main release seems to be having issues with the B side audio erroring out. I have tested both builds with the same bin/cue files and zuluscsi.ini. |
@WhatIsTheWeather I switched code to use the original CD playback code instead of the custom data loading I did, hoping that it was fast enough. I'll see if I can optimize the original code or add back the custom loading next week. For now use that special build. |
A missing `else if` is causing the wrong offset being read during a Plextor 0xD8 vendor SCSI CDB. Adding the `else` fixes the issue. It may or may not address the issue #258 Also dropped the `scsi_id` parameter for the function `scsiDiskOpenHDDImage` as it is redundant, with `target_idx` parameter being the same value.
Hi @WhatIsTheWeather, I found a bug and fixed it here: This has a minor optimization if the above does not work I added a initialization message if the plextor extension is enabled
If neither work, I'll add the aligned reads back. I'm hesitant to add it back because it will fail if the bin file isn't contiguous. |
Thanks for pushing the swift fix. The top link to the firmware with the bug fix and optimisation seems to have fixed the issue - I have ran off a few different bin/cue files for the A and B sides and have not had a single issue with this latest update. It is much appreciated! |
@WhatIsTheWeather This fix is now incorporated in to the v2024.04.01 release, which you should now upgrade to, when you have a chance. I'm going to close this as completed, but feel free to comment here if there's anything that doesn't work as expected, after upgrading to firmware v2024.04.01 |
Hi, I recently tested using bin/cue audio cd rips with my Otari digital master unit. Looking at the log it appears to open the bin/cue files fine and detects the 12 tracks on the cue sheet, however the machine throws out an error and does not load the audio. It looks like it is erroring out after attempting to read the TOC.
Here is the corresponding log.
zululog.txt
The text was updated successfully, but these errors were encountered: