Henrik Rydgård
ad04f97acb
Fix bug causing stack overflow in SasAudio, #9190 . Move the mixbuffer off the stack for easier-to-diagnose error (this trashed the info I needed to debug pretty badly...)
2016-12-27 18:32:47 +01:00
Henrik Rydgård
88ad1cb3d8
Attempt to workaround #9190
2016-12-27 11:55:45 +01:00
Henrik Rydgard
1e095951dd
Replace while loop with division (technically a right shift).
2016-12-20 22:02:40 +01:00
Henrik Rydgard
ff4b99dd97
Replace for-loop with multiplication
2016-12-20 21:52:25 +01:00
Henrik Rydgard
6782f7c75d
Just figure out how many samples to read, then read it, instead of one-by-one.
2016-12-20 21:47:50 +01:00
Henrik Rydgard
e802fb0b73
Remove the verification.
2016-12-20 21:42:11 +01:00
Henrik Rydgard
451388070a
Fix bug. Now use the quick inner loop, just need to redo the sample reader...
2016-12-20 21:37:31 +01:00
Henrik Rydgard
064795216e
Add parallel resampling algorithm that reads directly from the temp buf
2016-12-20 21:05:23 +01:00
Henrik Rydgard
47df134b66
Optimization step 1: Separate the loops, save history from buffer.
2016-12-20 20:50:34 +01:00
Henrik Rydgard
61f80edda3
SasAudio: Straightforward implementation of linear interpolation.
...
Not sure about the performance impact, but calling ReadSamples with 1 as
an argument can't be terribly fast. So this might need some redesign
before merge, but should be a good starting point.
2016-12-20 20:23:00 +01:00
Henrik Rydgard
b68f2deca8
Set the reverb type when loading a savestate. May help #8528
2016-01-31 11:20:26 +01:00
Unknown W. Brackets
23441d12fb
Sas: Estimate time taken for mixing.
...
Tests seem to show it's not affected by mhz.
2015-11-25 18:44:34 -08:00
Unknown W. Brackets
6290ac6cbd
Sas: Process SAS on a separate thread.
...
Remaining issues:
* Need a config setting.
* Locking for voices / config?
* Locking for atrac interop?
2015-11-25 18:44:30 -08:00
Unknown W. Brackets
6b413a808f
Atrac: Handle SAS end the same way as other types.
...
It makes sense to match, and this sounds right in Sol Trigger. Haven't
tested in detail yet, but it should prevent cutting off sounds.
2015-11-08 12:23:32 -08:00
Unknown W. Brackets
1aac569e73
Sas: Add in zeroes like the PSP seems to.
2015-11-01 20:56:34 -08:00
Unknown W. Brackets
9c378c4eda
Sas: Properly support the OFF reverb type.
2015-11-01 20:33:42 -08:00
Unknown W. Brackets
42222ad497
Sas: Support the dry flag as well as wet.
2015-11-01 20:32:35 -08:00
Henrik Rydgard
9fa6f1f89d
Minor improvements to audio debug display
2015-10-31 13:02:19 +01:00
Henrik Rydgard
40246e894c
Fix buzzsaw noises in reverb by preventing integer wraparound in a couple of places
2015-10-28 21:36:00 +01:00
Henrik Rydgard
22f71f1e9a
Show simple info about currently playing audio in on-screen Debug Statistics
2015-10-28 21:20:20 +01:00
Henrik Rydgard
06fec54dba
Forgot to scale a multiplication. Slightly better but quickly devolves into harsh noise.
2015-10-27 15:56:11 +01:00
Henrik Rydgard
9bb8aff715
Forgot that the address registers are scaled. still doens't fix it.
2015-10-27 15:52:19 +01:00
Henrik Rydgard
85c8f7d3c2
Hook up SasReverb. It sounds more like a buzzsaw than a reverb at the moment, needs debugging.
...
Added a bit of code that only enables it when a reverbed sound is active. This will need to be turned off later but useful right now for hearing when it's used..
2015-10-27 12:36:30 +01:00
Unknown W. Brackets
ec2d88cf17
Make the vag block buffer s16.
...
The values are clamped already, anyway.
2015-10-24 13:08:10 -07:00
Henrik Rydgard
26624709f7
Hook up the frame profiler to a few measurements
2015-05-24 23:45:36 +02:00