Discovery Gaming Community
Some game sounds not playing - Printable Version

+- Discovery Gaming Community (https://discoverygc.com/forums)
+-- Forum: Welcome (https://discoverygc.com/forums/forumdisplay.php?fid=399)
+--- Forum: Help & Support (https://discoverygc.com/forums/forumdisplay.php?fid=26)
+--- Thread: Some game sounds not playing (/showthread.php?tid=208342)

Pages: 1 2 3


RE: Game is missing sounds - Fish - 06-27-2025

(06-27-2025, 09:01 PM)Caffeine Wrote: Did you check and double check if FLSpew.txt is logging some relevant warnings about audio?

Don't have this file on any of my drives. Is it supposed to be there at all times or does it only get generated sometimes?


RE: Some game sounds not playing - Laz - 06-27-2025

(06-27-2025, 09:17 PM)Fish Wrote:
(06-27-2025, 09:01 PM)Caffeine Wrote: Did you check and double check if FLSpew.txt is logging some relevant warnings about audio?

Don't have this file on any of my drives. Is it supposed to be there at all times or does it only get generated sometimes?

It is located in %LOCALAPPDATA%/Freelancer/flspew.txt, it should always be present.


RE: Some game sounds not playing - Fish - 06-27-2025

(06-27-2025, 10:27 PM)Laz Wrote: It is located in %LOCALAPPDATA%/Freelancer/flspew.txt, it should always be present.

Ah apologies, search didn't pick it up, but it's there. It's long.

It is a repeating pattern(with many different individual file names) consisting of:

Code:
C:\work\builds\dalibs\dalibs-build\build\Src\SoundStreamer\NewStream.cpp(487) : ERROR:General:StreamingSound: Error initializing ACM for WAV file  'audio\music\music_reveal_and_exposition.wav'
C:\work\builds\dalibs\dalibs-build\build\Src\SoundStreamer\SoundStreamer.cpp(596) : ERROR:General:StreamingSound: Error reading WAV file  'audio\music\music_reveal_and_exposition.wav'
E:\FL\Scratch\Source\Client\cmn\Sound.cpp(2277) : *** WARNING: Failed to start streamer sound audio\music\music_reveal_and_exposition.wav
C:\work\builds\dalibs\dalibs-build\build\Src\WavLib\wavlib.cpp(32) : ERROR:General:StreamingSound: missing MP3 codec?
C:\work\builds\dalibs\dalibs-build\build\Src\SoundManager\SoundMan.cpp(381) : WARNING:General:SoundMgr:Couldn't load wav file <audio\sounds\ui\ui_rollover.wav>.
C:\work\builds\dalibs\dalibs-build\build\Src\SoundManager\SoundMan.cpp(1477) : WARNING:General:SoundMgr:Couldn't create archetype 1.
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(555) : *** WARNING: Failed to create archetype for sound filename "audio\sounds\ui\ui_rollover.wav"
C:\work\builds\dalibs\dalibs-build\build\Src\WavLib\wavlib.cpp(32) : ERROR:General:StreamingSound: missing MP3 codec?

and also this shows up:

Code:
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(360) : *** WARNING: unknown Sound archetype '0xb2252782'
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(360) : *** WARNING: unknown Sound archetype '0x943449c2'
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(360) : *** WARNING: unknown Sound archetype '0xa6a36480'
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(360) : *** WARNING: unknown Sound archetype '0x96aa1c49'
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(360) : *** WARNING: unknown Sound archetype '0xab38ab8d'
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(360) : *** WARNING: unknown Sound archetype '0x94455344'
E:\FL\Scratch\Source\Client\cmn\SoundArch.cpp(360) : *** WARNING: unknown Sound archetype '0x94455344'

Something to do with ffmpeg? I know I have it installed because I remember installing it when I updated Audacity some time ago.


RE: Some game sounds not playing - Fish - 06-28-2025

This was all I could find, it contains a dead link to some tutorial. I'll try fiddling with codecs and ffmpeg to see if it changes anything. Also, if I changed the file types, would the game detect it as cheating?


RE: Some game sounds not playing - Caffeine - 06-28-2025

(06-27-2025, 10:35 PM)Fish Wrote: Something to do with ffmpeg? I know I have it installed because I remember installing it when I updated Audacity some time ago.

Very unlikely ffmpeg has anything to do, as I doubt the game even checks any environment variables related to ffmpeg as it's older than ffmpeg, I believe it uses some proprietary libraries (as the logs suggest, one called Wavlib, part of DAlibs) to decode mp3.

Code:
C:\work\builds\dalibs\dalibs-build\build\Src\WavLib\wavlib.cpp(32) : ERROR:General:StreamingSound: missing MP3 codec?

I have the exact same warning spammed on my logs as well, but the sound still works fine, I'm playing this game through Wine, though. I think your best bet here is to ask @Aingar or wait for his input, as he's more familiar with the inner workings of the game engine.

These lines though seem to point to the root cause of the problem, which is some library called SoundStreamer, and unlike with the missing MP3 codec line I do not have these logged anywhere:

Code:
C:\work\builds\dalibs\dalibs-build\build\Src\SoundStreamer\NewStream.cpp(487) : ERROR:General:StreamingSound: Error initializing ACM for WAV file  'audio\music\music_reveal_and_exposition.wav'
C:\work\builds\dalibs\dalibs-build\build\Src\SoundStreamer\SoundStreamer.cpp(596) : ERROR:General:StreamingSound: Error reading WAV file  'audio\music\music_reveal_and_exposition.wav'
E:\FL\Scratch\Source\Client\cmn\Sound.cpp(2277) : *** WARNING: Failed to start streamer sound audio\music\music_reveal_and_exposition.wav



RE: Some game sounds not playing - Fish - 06-28-2025

my FLspew is now 24MB of just these warnings lmao

this is the only music track that plays:


I have soundstreamer.dll and soundmanager.dll in both directories. FL ones are from 2003 and Disco ones are from 2016, but the files appear identical in dotpeek decompiler(also as I said before the HD freelancer mod which is independent from Disco has the same issue so they probably are the exact same file?)

Can I try installing a different version of these files without the server banning me?


RE: Some game sounds not playing - Caffeine - 06-28-2025

(06-28-2025, 06:01 PM)Fish Wrote: my FLspew is now 24MB of just these warnings lmao

this is the only music track that plays:

This track is encoded as follows:

Code:
Input #0, wav, from 'music_deadlands_space.wav':
  Duration: 00:01:34.06, bitrate: 512 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, 2 channels, s16, 512 kb/s

It's raw PCM16, little endian at 16000Hz and with a 512Kbps bitrate, this track was also added with patch 5.0 so it's not vanilla. The majority of vanilla audio tracks on this game use lossy mp3, 22050Hz at 80kbps, so the issue seems to be with audio streams encoded in mp3 specifically. If there's no known solution you could perhaps try re-encoding one stream into PCM16 and see if SoundStreamer.dll likes it and it does play in-game?


RE: Some game sounds not playing - Caffeine - 06-28-2025

(06-28-2025, 06:01 PM)Fish Wrote: I have soundstreamer.dll and soundmanager.dll in both directories. FL ones are from 2003 and Disco ones are from 2016, but the files appear identical in dotpeek decompiler(also as I said before the HD freelancer mod which is independent from Disco has the same issue so they probably are the exact same file?)

Can I try installing a different version of these files without the server banning me?

These are the sha256 hashes my libraries have, see if yours are the same:

Code:
ef23b1b9ce21f4446f52078d7b34817ab2dfe87a0706a40b223ad847ca73d4da  soundstreamer.dll
fa3ac6ed980ba5b17235e8b7b61c78d55bbd6e387a7949d2451121c6999f202d  soundmanager.dll



RE: Some game sounds not playing - Fish - 06-28-2025

Code:
C:\Users\vis>certutil -hashfile D:\Games\Discovery Freelancer 5.00.8\EXE\soundstreamer.dll sha256
Expected no more than 2 args, received 4
CertUtil: Too many arguments

Usage:
  CertUtil [Options] -hashfile InFile [HashAlgorithm]
  Generate and display cryptographic hash over a file

Options:
  -Unicode          -- Write redirected output in Unicode
  -gmt              -- Display times as GMT
  -seconds          -- Display times with seconds and milliseconds
  -v                -- Verbose operation
  -privatekey       -- Display password and private key data
  -pin PIN                  -- Smart Card PIN
  -sid WELL_KNOWN_SID_TYPE  -- Numeric SID
            22 -- Local System
            23 -- Local Service
            24 -- Network Service

Hash algorithms: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

CertUtil -?              -- Display a verb list (command list)
CertUtil -hashfile -?    -- Display help text for the "hashfile" verb
CertUtil -v -?           -- Display all help text for all verbs


C:\Users\vis>certutil -hashfile D:\Games\Discovery Freelancer 5.00.8\EXE\soundmanager.dll sha256
Expected no more than 2 args, received 4
CertUtil: Too many arguments

Usage:
  CertUtil [Options] -hashfile InFile [HashAlgorithm]
  Generate and display cryptographic hash over a file

Options:
  -Unicode          -- Write redirected output in Unicode
  -gmt              -- Display times as GMT
  -seconds          -- Display times with seconds and milliseconds
  -v                -- Verbose operation
  -privatekey       -- Display password and private key data
  -pin PIN                  -- Smart Card PIN
  -sid WELL_KNOWN_SID_TYPE  -- Numeric SID
            22 -- Local System
            23 -- Local Service
            24 -- Network Service

Hash algorithms: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

CertUtil -?              -- Display a verb list (command list)
CertUtil -hashfile -?    -- Display help text for the "hashfile" verb
CertUtil -v -?           -- Display all help text for all verbs

Please help idk what i'm doing. (Can't find it in the crappy free dotpeek tool because every time i blink or breathe or think about even touching any button the UI refreshes and all the collapsible menus close and i cba opening them over and over)


Edit: nevermind, cmd doesnt like periods in file paths

soundmanager.dll: fa3ac6ed980ba5b17235e8b7b61c78d55bbd6e387a7949d2451121c6999f202d
soundstreamer.dll: ef23b1b9ce21f4446f52078d7b34817ab2dfe87a0706a40b223ad847ca73d4da

They are the same


RE: Some game sounds not playing - Fish - 06-29-2025

I'm now running into the problem where FLSpew.txt's file size is ballooning to a few gigs each time I play XD i think the higher powers don't want me playing this game every time it's something new