DC music for Shenmue II

No comparison necessary, unless you've forgotten how the PC version usually sounds.

No new build of DTPKUtil yet, because I'm confused and need to make some further adjustments. After comparing more Shenmue 1 tracks between the original and PC port, I found that the samples appeared to be 32-bit in the PC version instead of 16-bit on DC. So I wrote logic to "convert" samples to 32-bit, producing what I thought was correct. I kept the option to decompress for Dreamcast, even though it didn't seem very useful.

The track I was initially testing with sounded much better after converting samples to 32 bit, so I decided to test with something that was actually broken in the PC version - Queen's Street being the first obvious one. I converted the DC track to 32-bit samples and tried it in the game - everything was too low pitch. I confirmed with an audio editor that it was roughly half of what I was expecting. So I tried the DC decompress feature on it's own (keep 16-bit) and got what's in the video above. Which honestly sounds perfect to me and much better than what's in the stock PC release.

Now I need to figure out what's actually correct. Did they change Shenmue 1 to 32-bit while keeping 2 at 16-bit, or was there just a bug in my previous release that I fixed unintentionally? New build coming soon when I figure out what's going on and have time to poke around some more.

Unrelated:
I received a PM from a user asking about the MIDI dump feature in the AOSDK fork I mentioned earlier in this thread. Yes, that fork of AOSDK will do that but it's just getting you raw notes & timing (no effects) with no instruments assigned and sample files without loop points. If you do music work and that still interests you here is the MIDI dump of Shenmue 1 and the other for Shenmue 2.
 
Absolutely amazing work, Sappharad! D3T should have hired you to help finish working on the music!
I think someone there already had the right idea, but they couldn't use it for reasons yet unknown.

I was curious as to two things:
  1. Why do Dreamcast format songs even work in this port of the Xbox version after the samples have been converted? The file formats are different enough that they'd need two separate playback engines.
  2. Are those the only two formats supported, or can I shove something else in there?

To answer #2, I started disassembling the EXE and found the answer to another mystery from Page 1. Remember how I mentioned there were already DC format songs in the game data? I believe the game already has a complete set of audio in both formats. The function that builds the music paths actually builds two different paths: /SCENE/nn/SOUND/<filename>.snd and /SCENE/nn/SOUND/<filename>_dc.snd

Then it eventually continues and uses the .snd version of the file. I haven't figured out where it makes the decision to do that yet, but I managed to hijack the result at a breakpoint and force it to use the _dc version just once. The result? It loaded the Dreamcast version of the song as expected and it sounds as good as the video above.

In short, the game already contains the Dreamcast soundtrack and can even toggle between DC or the poorly supported Xbox version. What I haven't figured out yet is where it decides to use the .snd file instead of _dc.snd because it knows about both. I tried to cheat and change both paths to the _dc one but that just resulted in a crash, so I need to trace further upstream to wherever it decides to go with the one it does. If this works we don't need to distribute pre-modded files, just a small patch to the game.

Outstanding questions:
1. Since the game already has the DC soundtrack built in, how complete is it? Was this an option they were planning to include but it got cut before the game was finished?


If anyone else wants to look further before I get back to it, here are useful places to stick breakpoints:
Shenmue2.exe+57c886 - Append snd suffix
Shenmue2.exe+3d81cc - If _dc version is in memory here, it will be used. Some sort of load method called for most files.
 
I talked to @LemonHaze on Discord and made more progress as well as answered some questions.

  1. The .SND loader only supports 3 formats - XBOX music, Dreamcast music, and sound effects.
  2. The extra logic which appends _dc.snd during the loading process is not controlled by a flag, it's just debug logic. The game will not load Dreamcast audio on its own. Since it's tied to the debug message output, I'm assuming at this point that it was either for testing purposes or an unfinished feature that got cut.
  3. The Dreamcast soundtrack included with the game appears to be incomplete, the game will crash in various places if you patch it to load Dreamcast music. For example, when you start a new game the intro works fine, but the harbor area crashes on load. If you load a save file on Queens Street, that works fine, but walk to Workers Pier and it crashes trying to load that. The code that builds the file name used to load areas is at:
Shenmue2.exe+57FCAA - Appends .snd to file name
and there's no extra reference to _dc there. It builds the file name and puts it into r8, which is passed to the function that loads the music.

Due to #3, a game patch to use the included DC music would need to be slightly more elaborate than just forcing it to always use Dreamcast tracks. I don't know yet if I'm going to:
A. Write elaborate patch that selectively swaps to DC tracks when they can be used
B. Just let everyone replace the tracks that they want to via Forklift

Option B is probably easiest and I'll try to provide instructions later on how to convert songs along with a new version of DTPKUtil that will make it easier.
 
Wow, so there is perfectly working music already built in basically? Why where they messing around with the Xbox stuff then.

Cannot wait to see more results of this and mess around with this myself. If this can ultimately fix all the rerelease issues and wrongdoing introduced with the Xbox version then that's terrific!
 
You can have this now with the latest release of DTPKUtil:

Command line support for decompression was added, and I converted all of Disc 1 music for testing purposes over and played through to see what would happen here. The result was what you see above.

As for the rest of the music - it's a mixed bag and you shouldn't actually convert all DC tracks at this time. Some tracks are perfect, others have the wrong pitch on specific instruments. I'm guessing this is related to one of the unknown flags and will continue looking into it. I'd say about half of it is perfect at this point so if someone really wanted they could pick out just the tracks that are different / wrong and hopefully all of those might be OK.
 
You can have this now with the latest release of DTPKUtil:

Command line support for decompression was added, and I converted all of Disc 1 music for testing purposes over and played through to see what would happen here. The result was what you see above.

As for the rest of the music - it's a mixed bag and you shouldn't actually convert all DC tracks at this time. Some tracks are perfect, others have the wrong pitch on specific instruments. I'm guessing this is related to one of the unknown flags and will continue looking into it. I'd say about half of it is perfect at this point so if someone really wanted they could pick out just the tracks that are different / wrong and hopefully all of those might be OK.
This is superb work.

Is there a quick guide for Dummies (aka people like me) to run this?
 
Oh man it's just so incredible to have the right music again during Zhangyu's Wude lesson.
Absolutely amazing work Sappharad!
 
Is there a quick guide for Dummies (aka people like me) to run this?
The easiest thing to do would be for me to provide an easy way for someone to just process the GDI image automatically and spit out converted files. But since a good portion of the tracks still need additional work to convert correctly, that is not a good idea right now. That leaves us with picking and converting individual tracks that we know work as the best option right now, but I'm not aware of anyone building a list of what tracks are what. For example, I only know 0002_006 is the intro music because I've memorized that having used it so much for testing. Do we have a list that correlates tracks to the file names?

A simplified version of the steps you need to do right now:
  1. Extract desired tracks from the Dreamcast version. They are in the folder /SCENE/<discNumberHere>/SOUND/
  2. Use DTPKUtil to decompress those tracks manually. If you're an advanced user, you can write a bat file or PowerShell script to use the command line argument I added to decompress that way. It will automatically ignore files that are not music, so if you want to be lazy and feed it the entire SOUND folder that's fine, you'll only get output for the actual music files.
  3. Install forklift (see elsewhere, since that's documented)
  4. In your /mods/ folder, put the converted music where it came from in the original game. Ex: /mods/SCENE/01/SOUND/ for disc 1.

It's probably reasonable for me to just upload pre-converted files, since you need the game to use them anyway. But I'm not going to do that until everything's been tested.
 
The easiest thing to do would be for me to provide an easy way for someone to just process the GDI image automatically and spit out converted files. But since a good portion of the tracks still need additional work to convert correctly, that is not a good idea right now. That leaves us with picking and converting individual tracks that we know work as the best option right now, but I'm not aware of anyone building a list of what tracks are what. For example, I only know 0002_006 is the intro music because I've memorized that having used it so much for testing. Do we have a list that correlates tracks to the file names?

A simplified version of the steps you need to do right now:
  1. Extract desired tracks from the Dreamcast version. They are in the folder /SCENE/<discNumberHere>/SOUND/
  2. Use DTPKUtil to decompress those tracks manually. If you're an advanced user, you can write a bat file or PowerShell script to use the command line argument I added to decompress that way. It will automatically ignore files that are not music, so if you want to be lazy and feed it the entire SOUND folder that's fine, you'll only get output for the actual music files.
  3. Install forklift (see elsewhere, since that's documented)
  4. In your /mods/ folder, put the converted music where it came from in the original game. Ex: /mods/SCENE/01/SOUND/ for disc 1.
It's probably reasonable for me to just upload pre-converted files, since you need the game to use them anyway. But I'm not going to do that until everything's been tested.
Thank you very much. I can follow that.
 
I have a comprehensive list of what file is what music in Shenmue II. That huuuuuge soundtrack...

0001_002 - Hong Kong Battle
0001_004 - Three Birds Building Roof
0001_008 - Unused 10
0001_011 - Scarlet Hills (Night)
0001_014 - Letter to Shenhua
0001_018 - Kowloon Top Floors
0001_019_00_00 - Lucky Plaza Chase
0001_019_00_01 - After The Fall
0001_022 - Yellow Head Building Top Floors
0001_025 - Waiting to Run
0001_027 - Golden Qr. (Night)
0001_028 - Golden Qr. (Day)
0002_002 - Street Challenge
0002_006 - Aberdeen Introduction
0002_012_00_00 - Xiuying's Ability Test
0002_012_00_01 - Xiuying Fight
0002_013 - Fighting Areas
0002_014 - Fenglin Xuan Darts
0002_015 - Up The Roof
0002_016 - Baihu Fight
0002_018 - Yellow Head Building Bottom Floors
0002_020 - Counter Elbow Assault
0002_023 - Guilin Intro
0003_001 - Kowloon Intro
0003_002 - Pigeon Cafe
0003_003 - Kowloon Top Floors 2
0003_007 - First Night at Xiuying's
0003_013 - Green Field
0003_014 - Fortune's Pier (Night)
0003_016 - Queen's Street (Night)
0004_001 - Beverly Hills Wharf (Night)
0004_003 - Ren's Hideout
0004_005 - Man Mo Temple
0004_007 - Xiuying's Instruction
0004_010 - Forest 3
0004_013 - Meet Yang
0004_014 - Fangmei's Theme
0004_015 - Crag Cutscene
0004_017 - Cleaning Soot
0004_019 - Street Fights
0004_020 - Slot House
0005_005 - Lucky Charm Qr. (Day)
0005_006 - South Carmain Qr. (Day)
0005_007 - South Carmain Qr. (Night)
0005_009 - Stand Qr. (Night)
0005_011 - Ghost Hall Building
0005_013 - Moving Crates
0005_014 - Yongmin Wen Darts
0005_015 - Green Market Qr. (Day)
0005_016 - Fangmei Ziming Discussion
0005_017 - Thousand White Qr. (Day)
0005_018 - Xiuying Ziming Photo
0005_019 - Yan Tin Apartments
0005_020 - Underground
0005_021 - Happiness Buddhist Alter Shop
0005_022 - Fortune's Pier (Day)
0005_025 - Unused 8
0005_028 - Wizard Trees
0006_001_00_00 -Sneak into Warehouse F
0006_001_00_01 - Warehouse F Battle
0006_003 - Fortune Telling
0006_008 - Lucky Charm Qr. (Night)
0006_012 - Theme (fusion)
0006_016 - Loop6
0006_017 - Airing Out Books
0006_020 - Hanhui's Teaching
0006_021 - Fortune's Office
0006_022 - Bar Swing
0006_024 - Forest 1
0007_005_00_00 - Heads or Tails
0007_005_00_01 - Unused
0007_012_00_00 - Unused 5
0007_012_00_01 - Following Yuan
0007_015 - Bar Man Mo
0007_022 - Dimsum Qr. (Night)
0008_001 - Funny & S.I.C. Pool Hall
0008_002_00_00 - Chase Wong
0008_002_00_01 - Defeated by Sam and Larry
0008_003 - Defeated by Sam and Larry
0008_011 - F Warehouse
0008_012 - Pine Game Arcade
0008_014 - Cloud Bird Trail
0008_015 - Scarlet Hills (Day)
0008_020 - Bag Stolen by Wong
0008_021 - Wan Chai Electrical Goods
0008_025 - Glamorous & Golden Jewelers
0009_004 - Hiding from Dou Niu
0009_005 - Restaurants
0009_008 - Beautiful Shine Jewelers
0009_009 - Dragon Street (Day)
0009_013 - After The Fall
0009_016_00_00 - Ren at Pigeon Park
0009_016_00_01 - Chasing the Heavens
0009_018 - Wise Men's Qr. (Day)
0009_020 - White Dynasty Qr. (Day)
0009_021 - Worker's Pier (Day)
0009_022 - Unused 6
0009_024 - Stand Qr. (Day)
0009_025 - Unused 17
0010_002 - Thousand White Convent
0010_003 - White Dynasty Qr. (Night)
0010_004 - Jianmin's Theme
0010_005_00_00 - Stopping Yuan
0010_005_00_01 - Yuan Fight
0010_007 - Dancing Dragon QTE
0010_009 - Don't Call Me
0010_011 - Darts Baseball
0010_015 - Running from the Yellow Head
0010_017 - Authorization #737
0010_023 - Unused 7
0010_026 - Ren's Lead
0010_027 - Lucky Charm & Lee Barber's Shops
0010_028 - Beautiful Country China Shop
0010_030 - Huang's Room
0011_003 - Lucky Charm Electronic Shops
0011_004 - Fortune Tellers
0011_010 - Lunch with Waltz
0011_012 - Cool Gambler
0011_015 - Big Catch Tackle China Shop
0011_017 - Hiding from the Yellow Head
0011_018 - Warehouses
0011_020 - Chunyan
0011_023 - Dimsum Qr. (Day)
0011_024 - Dragon Street (Night)
0012_007 - Wise Men's Qr. (Night)
0012_008 - Juk Man Bookstore
0012_016 - Man Mo China Shop
0013_001 - Wise Men's Kung Fu
0013_002 - Lucky Hit
0013_005_00_00 - Unused 15
0013_005_00_01 - Unused 15
0013_006 - Pawnshop
0013_007 - Great View Building
0013_008 - Are you Lishao Tao?
0013_009 - Come Over Guest House + Intro
0013_014 - Great View Herbs
0013_016 - Man Mo Herb Medicine
0013_018 - Green Market Qr. (Night)
0013_019 - Worker's Pier (Night)
0013_021 - Unused 9
0013_022 - Antique Shops
0013_024 - Arm Wrestling
0013_026 - Unused 2
0013_027 - Thousand White Qr. (Night)
0013_028 - Sign Straightening
0013_029 - Da Yuan Apartments
0013_030 - Hong Kong Souveniers
0014_002 - Pub Point
0014_004 - Rooftop Fight
0014_007 - Unused
0014_015 - Wild Throw
0014_019 - Stone Pit 2
0015_003_00_00 - Breaking out
0015_003_00_01 - Unused
0015_006 - Search for the Bag
0015_008 - Bag Retrieved
0015_014 - Girl in the Wind
0015_017 - Bar London
0015_019 - Heart made of Iron
0015_022 - Dou Jiang Diner
0015_024 - Roll it on top
0015_025_00_00 - Unused 1
0015_025_00_01 - Unused 1a
0015_025_00_02 - Unused 1b
0015_025_00_03 - Unused 1c
0015_027 - Big or Small
0016_001 - Yuanda Zhu's Room
0016_002 - Blue Sky
0016_003 - Pop Ice Cream Store
0016_014 - Moon Child Orphanage
0016_015 - Worship & Heaven Buddhist Altar Shops
0016_018 - Ohshu Soba
0016_019 - Stone Pit 1
0016_021 - Catching Leaves
0016_022 - Meet Guixiang Lee
0016_023 - After Burner
0017_008 - Entering Man Mo Temple
0017_010 - General Store
0017_012 - Main Menu
0017_014 - Worker's Pier (Day) (no melody)
0017_017 - Iron Palm Practice
0017_019 - Thousand White Building Upstairs
0017_020 - Queen's Street (Day)
0018_001 - Man Mo Bistro
0018_002 - Wise Men's Chemist
0018_004 - Forturne Eatery
0018_005 - Beverly Hills Wharf (Day)
0018_006 - Man Mo General Store
0018_010 - Clothier Tailors
0018_018 - Smashing the Rock
0018_019_00_00 - Shenmue 1 QTE
0018_019_00_01 - Shenmue 1 QTE
0018_020 - Shenmue 1 QTE
0018_021 - Space Harrier
0018_022 - Hang-On
0018_023 - Magical Sound Shower
0019_001_00_00 - Joy Unused
0019_001_00_01 - Joy Unused
0019_003 - Poison Bros
0019_004 - Come Over Guest House
0019_005 - Darts
0019_007 - Meeting with Zhang
0019_008 - Yellow Head Battle
0019_011 - Letter from Zongquan
0019_012 - Follow Wong to the Bag
0019_013 - Hind Blow Practice
0019_015 - Unused
0019_017 - Chawan Sign Instruction
0019_018 - Guixiang Chawan Visit
0019_020 - Ren of Heavens
0019_022_00_00 - Zhangyu Barber's Shop
0019_022_00_01 - Zhangyu Barber QTE
0019_023 - Swing
0020_001 - Tea with Guixiang
0020_002 - Shenhua's Introduction
0020_003 - Saving Shenhua
0020_004 - Langhuishan
0020_005_00_00 - Shenhua's House (Day)
0020_005_00_01 - Shenhua's House (Night)
0020_007 - Tomato Convenience Store
0021_002 - Unused 3
0021_005_00_00 - Arcade Jingle
0021_005_00_01 - Arcade Jingle
0021_005_00_02 - Arcade Jingle
0021_006_00_00 - Excite QTE 2
0021_006_00_01 - Arcade Jingle
0021_012 - Big Ox Bldg. 40F
0021_014 - 6 Minutes
0021_018 - Lan Di's Departure
0023_006 - Yamaji Soba
0023_007 - Soba
0023_009 - Rocky Area
0023_010_00_00 - Barry Jones Darts
0023_010_00_01 - Barry Jones Remix
0023_012 - Building a Fire
0023_013 - Baiyang Liu Darts
0023_014_00_00 - Shenmue Tree 1
0023_014_00_01 - Shenmue Tree 2
0023_016 - Unused
0023_017 - Poison Brothers Attack
0023_022 - Xiuying's Pendant
0023_023 - Yuanda Zhu's Whereabouts
0024_001 - Yuanda Zhu's Location
0024_002_00_00 - Unused
0024_002_00_01 - Unused
0024_004 - Unused 13
0024_005 - Set Free
0024_006 - Unused
0024_007 - Yuan Knife QTE
0024_008 - Heavens Trap
0024_009 - Splitting Up
0024_010 - A Trap
0024_011 - Yuan Chainsaw chase
0024_012 - Thousand White Convent Scene
0024_013 - Unused
0024_014 - Diagram
0024_015_00_00 - Unused
0024_015_00_01 - Unused
0024_017_00_00 - Landsharks
0024_017_00_01 - Landshark battle
0024_017_00_02 - Landsharks aftermath
0025_001 - Yellow Head Building 3-4F
0026_009 - The story goes on...
0027_001 - Fangmei Man Mo Ambush
0027_002 - Unused
0027_003 - Goodbye Wong (Remix)
0027_004 - Goodbye Fangmei
0027_005 - Photographer Harrassment
0027_006 - Wong's Photo
0027_007 - Unused
0027_008_00_00 - Blinking Lights
0027_008_00_01 - Blinking Lights Caught
0027_008_00_02 - Unused
0027_008_00_03 - Unused
0027_009 - Unused
0027_012_00_00 - Searching Tapes
0027_012_00_01 - Searching Tapes cutscene
0027_013 - Unused
0027_014 - Place for the Night
0027_015 - Dancing Dragon building near rooftop
0027_016 - Saving Luo Zhengye QTE
0027_017 - Regain your Calm
0027_018 - Xiuying's Approval
0027_020 - Come Over Guest House Call
0027_021_00_00 - Assault in Man Mo Park
0027_021_00_01 - Manmopark Ambush
0027_023 - Fangmei's Photo
0028_001 - MJQ Tape
0028_002 - Dandy Old Man Tape
0028_003 - Shenmue Tape
0028_004 - Flower Girl Tape
0028_005 - Feeling Tired Song Tape
0028_006 - GoGo Tape
0028_007 - Liquor Tape
0028_008 - Linda Taoe
0028_009 - Harbor Bar Tape
0028_010 - Nana Tape
0029_001 - Spider Tape
0029_002 - Be-witch Tape
0029_003 - Destiny Tape
0029_004 - Boz Nov Tape
0029_005 - Y.A.D.A Tape
0029_006 - Yokosuka Tape
0029_007 - Shenmue 1 Tape
0029_008 - Glyfada Tape
0029_009 - Harbor Beats
0029_010 - Shenhua Tape
0030_001 - Like A Feeling Tape
0030_002 - Shenmue Tape
0030_003 - Hip de Hop Tape
0030_004 - Heart Beats Tape
0030_005 - Sea (remix i)
0030_006 - Theme (arrange i_o)
0030_007 - Flower Girl (arrange i)
0030_008 - Tryno-bass No. 012
0030_009 - Gifts
0031_001 - Entering the Stone Pit
0031_002_00_00 - Calling Father
0031_002_00_01 - Searching the Caves
0031_002_00_02 - Through the Door
0031_003 - Into the Crag
0031_004 - Where's Zhang
0031_005 - Ren at Fortunes Pier
0031_007 - Mirror SFX
0031_009 - Campfire
0031_014 - Path Through a Wood
0031_015 - Ryo Practicing Tai Chi
0031_016 - Crag (Day)
0031_017_00_00 - Weather Change
0031_017_00_01 - Rush Through The Forest
0031_018 - The Next Day
0031_019 - Counting the Stars
0033_006_00_00 - Fangmei in Trouble Intro
0033_006_00_01 - Fangmei in Trouble QTE
0033_006_00_02 - Fangmei in Trouble End
0033_009 - Leaving Kowloon
0033_010_00_00 - Predictive Explosion
0033_010_00_01 - Iwao's Old Friend
0033_011 - Unused
0033_012 - Brawling Uppercut
0033_014 - Ren's Hideout Cutscene
0033_015 - Waiting for the Scout
0033_016 - What Awaits
0033_017 - Unused 11
0033_018 - Greg More
0033_019 - Yuanda Zhu's Insight
0033_020 - Wong's Help
0033_021 - Five Stars Corp
0033_022_00_00 - Meet Zhu
0033_022_00_01 - Followed by Yuan and Dou Niu
0033_022_00_02 - Unused
0033_023 - Big or Small mini game
0033_024 - Asking about Wude
0033_025 - Nothing Can Stop Him
0033_026 - Zhang's stick
0034_001 - Ghost Hall Building Cutscene
0034_002 - Guilin Arrival / Shenhua Memory
0034_004 - The Scout
0034_005_00_00 - Rooftop Confrontation
0034_005_00_01 - Dou Niu Rooftop Fight
0034_007 - Outside Convent
0034_008 - JIE Lesson
0034_017 - Rod Stunt
0034_018 - Unused 12
0034_019 - After Meal
0034_020 - Shenhua's Meal
0034_021 - Rooftop Camping
0034_022_00_00 - Black suits QTE 1
0034_022_00_01 - Black suits QTE 2
0034_022_00_02 - Black suits QTE 3
0035_001 - Waking up on the rooftop
0035_002 - Forcing Through
0035_002 - Breaking Out
0035_004 - Forest 2
0035_006 - Yuan's Room
0035_011 - Baihu Intro
0035_012 - Unused 14
0035_013 - Baihu's Defeat
0035_016 - Sword Insertion
0035_017 - Unused 4
0035_018 - Man Mo Temple Arrival
0035_019 - Memories of Distant Days
0035_020_00_01 - Old Song of the Village
0035_021 - Joy's Bike
0035_022 - Duck Racing
0036_001_00_00 - Eileen Fight Intro
0036_001_00_01 - Eileen Fight
0036_002_00_00 - Izumi Fight
0036_002_00_01 - Tomato Convenience Store Unused
0036_003 - Eileen fight
0036_004_00_00 - Black Suits
0036_004_00_01 - Black Suits Defeated
0036_007 - Man Mo Temple First Visit
0036_008 - Flower, Bird, Wind and Moon
0036_009 - Fireflies
0036_010 - Memories of Xiuying
0036_011 - Nozomi's Theme
0036_012 - Kai's Tune
0036_013 - Shenmue Tree 2
0036_014 - Joy in Kowloon
0036_015 - Mirror Insertion
0036_016 - Fangmei Final Goodbye
9999_999 - Sedge Tree, Percussive

Going back to the inital post, that means we still need fixes for (at least) 0018_005, 0034_002 and 0026_009 and I'll add 0005_009 now, because that track became way too loud in the Xbox version
 
@BlueMue - Thanks for the list.

I've updated DTPKUtil one last time:

The option "Expand to 32-bit" has been renamed to "Expand Samples to Playback rate" and you now should be using it when converting from Dreamcast to PC. (The command line argument for it is still -decompress32) I identified one of the unknown flags as denoting whether a sample is stored at half-rate (11025hz instead of 22050hz) and all of the samples with that flag set need to be expanded for correct playback in the ports. The 3rd set of numbers in the sample table that I assumed was always 0 is also not always 0, sometimes it's 0x80 and this also denotes samples are stored at half frequency (or bitrate?). Either way, those needed to be doubled as well. I previously believed that they just converted everything to 32-bit samples for the PC port of Shenmue 1, but after going back I see the tracks I was using as reference all had the previously unknown flags set. So the option to expand no longer expands everything, just the samples that need it for the PC version.

I converted all of Disc 1 and played through it with DC format music. Everything I heard sounds perfect to me now, with the one exception being Lucky Charm Qr. Day sounds off but I can't be 100% certain because I had to use the really crappy speakers built into my monitor instead of good speakers. Besides, if that one track is wrong, just omit that one.

Nothing on Disc 2, 3, or 4 has been tested because I don't have save files there and haven't had time to speed run through the rest of the game.

Is there any interest in me uploading all of the converted DC music so you don't have to follow a tutorial to convert it yourself? 239MB 7zipped for everything. While it's kind of awkward to be posting all of the game music, the files are completely useless unless you own the game so I'd be posting it in good faith and Sega can always complain later if they don't like it. Otherwise I'd just need to add a feature to the app that lets you provide Dreamcast disc images and it reads them from there, but I'm not too interested in doing that.

With this, the only music left to restore should be the tracks not stored in .SND format. That would include 2 of the streaming tracks that BlueMue mentioned in his initial post from the beginning and end of disc 4.
 
I'll second that.
 
Used the upload site that LemonHaze used earlier in the thread:

If there are complications with that service I'll just upload it to my site later. Enjoy!

In the event of any problems with a full replacement, we can make note of them and just drop the ones that don't sound right unless they also happen to be broken in the original state too.
 
Used the upload site that LemonHaze used earlier in the thread:

If there are complications with that service I'll just upload it to my site later. Enjoy!

In the event of any problems with a full replacement, we can make note of them and just drop the ones that don't sound right unless they also happen to be broken in the original state too.
I'm having some fun downloading everything with teh connection being unstable/slow

Could you set-up another link?
 
I'm having some fun downloading everything with teh connection being unstable/slow

Could you set-up another link?
At the moment I'm going to refrain, because I just tried it and it's really fast:
2868
Does anyone else have experiences to report, good or bad? Even if I upload it to my site, it might not help and the performance could just be due to the servers being located far away from you.
 
Back
Top