vgmstream / vgmstream

vgmstream - A library for playback of various streamed audio formats used in video games.
https://vgmstream.org
Other
1.58k stars 176 forks source link

[Bug] failed opening sfx_container.bnk (Cyberpunk 2077) #1500

Closed Zhincore closed 6 months ago

Zhincore commented 6 months ago

Hello, I am trying to extract embedded audio / subsongs from Cyberpunk 2077's .bnk files. For the smaller ones it works perfectly, but for the sfx_container.bnk (and few others) vgmstream just says "failed opening \". The file exists at that path, it is accessible, it works for other bnks in that folder.

Samples:

I can provide more samples of openable and not openable .bnks if needed.

I am using vgmstream CLI decoder r1896-82-gaa22b1c8 (Feb 25 2024). Thanks.

P.S. According to wwiser, some of the sounds in sfx_container are "PCM" instead of the usual "Crankcase REV Model Player" that is used in most of the other embedded subsongs.

bnnm commented 6 months ago

Fixed. But note that to get all subsongs in ADM3 you need to extract the file. inside .bnk vgmstream can only play the first one, but not sure could we handle it since it's a kind of special plugin helper rather than regular audio.