Commit graph

13 commits

Author SHA1 Message Date
AzaezelX 5ffa3b81f1 dial back nullPtr usage
while it still remains a good idea to port as many NULL compares and assignments over to nullPtr as feasable, we do still need to sort out how to better support scripted empty, false, and zero assigns for things like objectIDs.

this means we'll need to both fully convert the backend of the parser to support that kind of thing, but also alter most if not all exisiting NULLs. up to and including things like SAFE_DELETE. while that's certainly feasable, given there's aproximatel 400 nullptr assigns/checks prior to this commit, and roughly 1800 of the prior, if it terminates in a script call and not an aip one direct, we'll be dialing that back until such time as fork fully fopcused on converting and resolving any lingering mismatches is completed.
2025-12-29 17:45:09 -06:00
marauder2k7 0d1dc234fa Update sfxSndStream.cpp
we always want shorts
2024-05-25 10:04:51 +01:00
marauder2k7 0ae0d633e9 Update sfxSndStream.cpp 2024-05-25 08:16:43 +01:00
marauder2k7 aa9cb63789 Update sfxSndStream.cpp 2024-05-24 17:18:35 +01:00
marauder2k7 de454dc793 Update sfxSndStream.cpp
revert vorbis back to 16bit add normalisation option.
2024-05-24 16:25:26 +01:00
marauder2k7 c28cedc2d8 32 bit float test
32 bit floating point sounds
2024-05-24 16:19:10 +01:00
marauder2k7 ebdc408385 Update sfxSndStream.cpp
streaming file fixes, also only wrap back around when we have read the whole file.
2024-05-24 15:11:18 +01:00
marauder2k7 bf34d3daa8 Update sfxSndStream.cpp
fix distortion issue on some sounds, if vorbis requires a scale set for float conversion
2024-05-24 14:12:01 +01:00
marauder2k7 482eb28ded Update sfxSndStream.cpp
add different file type modes and reset stream after reading (torque still reads the full thing)
2024-05-24 14:00:21 +01:00
marauder2k7 6bc4ace2e5 Update sfxSndStream.cpp
fix for stereo files (2d sound files) frames report back as bytesPerSample * channels

which for us is bytesPerSample. This needs to be applied to the return from read so sfx resource knows we have read all the info.
2024-03-24 13:51:04 +00:00
marauder2k7 0342eb6f31 replace other classes
now all sfxFileStreams create a libsndfile stream class.

At the moment we only read as short
2024-03-24 12:06:03 +00:00
marauder2k7 147044796b sfxSndStream
Ogg file from libsndfile now working. we can pull more information from the format and specifics of the file from libsndfile should maybe look at updating all the parameters around mFormat so it feeds openal settings better.

Next step is to remove the other stream classes.
2024-03-24 11:33:42 +00:00
marauder2k7 3652367b36 sfxSndStream
read an ogg file through libsndfile instead of libvorbis.

There are still issues with this part of the file opens but doesn't read the whole file for some reason
2024-03-23 20:17:18 +00:00