Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

How to play audio from a Nintendo DS game

Featured Replies

  • Author
  • Localization

amgb, posted Fri Oct 28, 2022 9:51 pm (74010)


Hello everyone.

I have found on the Internet a nds file of the game I was looking for, Star Wars - The Clone Wars - Jedi Alliance. I have been able to extract allt the files with the NDSHeader tool. Howerver, when I open the sound folder, there is a file named "French.voicepack" (https://we.tl/t-RM56QUnk2r). I don't know if the extension "voicepack" even exists, but does someone know how I could read these files if this where they are ?

Thanks in advance for your help. :D
  • Author
  • Localization

BloodRaynare, posted Sat Oct 29, 2022 12:05 am (74012)


Here's the BMS script to extract your file (Bit hacky on the filecount calculation).

swcwja_voicepack.bms

Code:
get FILES long
math FILES - 2
goto 0x10
for i = 0 < FILES
   get OFFSET long
   get SIZE long
   string NAME p "d.strm" i
   log NAME OFFSET SIZE
next i


However, vgmstream were unable to play the extracted STRM files due to the number of audio samples indicated on the header are 0 which means no sample/audio data. I had to write this TXTH supplementary file to make sure they were playable but I don't know if the regular IMA codec will sound correctly since I assumed Nintendo used their own implementation of it.

Save the TXTH script below as ".strm.txth"

Code:
codec = IMA
channels = @0x1a$1
sample_rate = @0x1c$2
start_offset = @0x28
data_size = @0x64
num_samples = data_size


Also one more thing, there are 0-byte file inside there which means no data at all so they were unplayable. Just skip them.
  • Author
  • Localization

amgb, posted Sat Oct 29, 2022 9:16 am (74016)


You are amazing ! Thanks for the files !
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.