Commit graph

5 commits

Author SHA1 Message Date
Splendide Imaginarius
c58d708faa
Merge pull request #130 from Splendide-Imaginarius/seek-double
Audio: use double for seeking
2024-09-27 17:34:12 +00:00
Wayward Heart
891b1fd9f7 Don't close audio streams until we're sure we've found a file, and always attempt to load the requested file if the stream is closed.
This matches RGSS's behavior should an Audio method be called for a non-existent file, and prevents a segfault if an attempt raises an error and then play is called again for the previously playing file.

As part of this fix, we're now storing the SDL_RWops for audio streams directly in the source structs.
2024-08-19 01:16:03 -05:00
Splendide Imaginarius
567ee60d01 Audio: use double for seeking
At moderately large positions (e.g. 6 minutes at 48 KHz), float32 is only
precise to 2 samples.
2023-11-15 03:33:24 +00:00
Amaryllis Kulla
fae7fa9c4e
Update ancurio's copyright notice (#29) 2023-10-04 15:07:34 -04:00
Struma
f98b1e031f Reorganize src dir 2020-11-21 01:36:24 -05:00
Renamed from src/vorbissource.cpp (Browse further)