Commit Graph

58 Commits

Author SHA1 Message Date
Unknown W. Brackets
61f2fc4d3b Return error to blocked audio threads on release. 2013-06-05 12:20:07 -07:00
oioitff
c9845054e8 Fix choppy cg audio, bgm and even some
missing bgm, voice, se.
2013-06-05 22:52:05 +08:00
Unknown W. Brackets
06c19622d5 Fix some init/type warnings. 2013-05-31 23:14:29 -07:00
Unknown W. Brackets
839ff0a795 Correctly reset audio channels on shutdown.
Fixes #1876.
2013-05-21 00:59:05 -07:00
Unknown W. Brackets
d4f3137a2c Don't overlay Vaudio with multichannel.
It seems to share living space with Output2/SRC.
2013-05-19 15:46:24 -07:00
Unknown W. Brackets
2bab76a940 Block audio output more correctly.
Still with the same thresholds, so hopefully it won't hurt sync.
2013-05-19 12:31:47 -07:00
Unknown W. Brackets
64fce0b5e1 Fix sceAudioSetChannelDataLen() error codes. 2013-05-19 10:44:05 -07:00
Unknown W. Brackets
4c36f12889 Negative volume means unchanged, not error. 2013-05-19 10:42:22 -07:00
Unknown W. Brackets
8a985e36ce Correct some logging to use ERROR_LOG.
Oops, was just copy and pasting the other wrong ones.
2013-05-16 01:53:38 -07:00
Unknown W. Brackets
857e12d27d Validate the SRC format, and enforce STEREO.
Were these actually outputting audio before?
2013-05-16 01:12:40 -07:00
Unknown W. Brackets
8544171a84 Validate the sample count in SRC and Output2. 2013-05-16 01:12:40 -07:00
Unknown W. Brackets
4eee3af19b Error when trying to reserve Output2 twice. 2013-05-16 01:12:39 -07:00
Unknown W. Brackets
0ab30ecb07 Use a separate channel for SRC/Output2.
Tests on the PSP show that all 8 channels can be reserved/used at the
same time as *either* Output2 or SRC (but SRC and Output2 cannot be used
at the same time.)
2013-05-16 01:12:39 -07:00
Unknown W. Brackets
8b3b666612 Return an error for invalid audio sample sizes. 2013-05-16 01:12:38 -07:00
Unknown W. Brackets
674cd9c1a1 Auto select the highest available channel.
This is what tests show, and what the PSP does.  It makes sense, since
the game might hardcode 0/1 but some library might use autoselect.  Or
something.
2013-05-16 01:12:38 -07:00
Unknown W. Brackets
3f8c920436 Accept any negative channel as autoselect.
And fix error codes in sceAudioChReserve().
2013-05-16 01:12:37 -07:00
raven02
897fc5068d vol > 0xFFFFF for sceAudioSRCOutputBlocking 2013-05-14 08:32:51 +08:00
Henrik Rydgard
c38eece4de Increase max volume of sceAudioOutput2OutputBlocking. 2013-05-13 22:06:49 +02:00
raven02
503baca884 Buildfix 2013-04-16 19:34:52 +08:00
raven02
e4e2098279 Better formatting for volume check 2013-04-16 17:15:16 +08:00
raven02
f126e56392 Invalid volume check in sceAudio() 2013-04-16 15:46:39 +08:00
oioitff
4bae30095b Audio format should be set here. 2013-04-13 17:57:09 +08:00
raven02
f397fda0b8 Improve few sceAudio functions 2013-03-30 23:58:13 +08:00
raven02
57dfd2fe90 add clear() for all channel release 2013-03-03 00:25:41 +08:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08:00
Unknown W. Brackets
893ba662ae Allow sceAudioChReserve() to choose a channel.
Not just only -1.
2013-02-01 08:16:01 -08:00
raven02
7ccb87d11e Fix sound too fast issue 2013-01-25 08:48:28 +08:00
raven02
3672214811 Comment int src 2013-01-24 23:43:26 +08:00
raven02
2a1e366d33 Implement sceAudioSRCChReserve/Release/OutputBlocking 2013-01-24 23:29:49 +08:00
Henrik Rydgard
a75e85aa3c Hacky implementation of sceVaudio, whatever the point of that API is... 2013-01-22 22:03:40 +01:00
Unknown W. Brackets
140fd171ef Fix some 64-bit type conversion warnings. 2013-01-19 13:48:20 -08:00
raven02
2bdaaba2ab Change MAX_CHANNEL to PSP_AUDIO_CHANNEL_MAX 2012-12-24 01:00:43 +08:00
Henrik Rydgård
ce214b3943 Assorted warning fixes 2012-12-23 09:44:43 +01:00
Florent Castelli
c33eafd430 Warning fixes 2012-12-21 23:02:35 +01:00
Henrik Rydgard
39cae09ead Change some warn logging to debug logging, it's fine 2012-12-20 15:07:58 +01:00
Henrik Rydgard
5a11d4d9c5 Implement sceKernelGetThreadmanIdList (partially) 2012-12-17 22:21:17 +01:00
Henrik Rydgard
9acfd50139 Fix one cause of audio choppiness - we were dropping samples when audio functions blocked. Also some cleanup. 2012-12-17 20:15:23 +01:00
Henrik Rydgård
5e3590d94e Remove some RETURN, cleanup 2012-12-09 19:41:19 +07:00
jacky400
595ff3b1fb Update Core/HLE/sceAudio.cpp
Too spam and change it to debug log
2012-12-05 20:22:11 +08:00
Henrik Rydgard
111f52d67f Unbreak sceAudioOutput2OutputBlocking - must be careful about returns in blocking functions! 2012-11-28 11:09:12 +01:00
Ced2911
f6fd7e13d1 sceAudio wrap 2012-11-27 12:18:58 +01:00
Unknown W. Brackets
3642c02562 Add some guards to audio funcs on channel.
The atrac test was crashing.
2012-11-23 16:25:26 -08:00
Henrik Rydgard
a97f66766d Add "slightly faster interpreter", optimizing the most common instrs. Not as helpful as I thought it would be on Android, really need a proper JIT. 2012-11-23 12:42:35 +01:00
Henrik Rydgard
f3aeadedfa Remove audio rate throttling, it's better to frame rate throttle. Gets rid of the slowdown that audio caused. 2012-11-23 10:35:28 +01:00
Henrik Rydgard
d572d40c36 More warning fixing 2012-11-18 23:35:02 +01:00
Henrik Rydgard
7720dc3f60 Various warning, logging, jit fixes 2012-11-17 19:56:28 +01:00
Henrik Rydgard
5a48578a12 Rewrite audio line output. Now deterministic (from the game's POV) and smoother. 2012-11-17 14:20:59 +01:00
Henrik Rydgard
387552f564 Misc fixes (accept .prx, work on power callbacks, bugs) 2012-11-10 10:15:11 +01:00
Henrik Rydgard
1b90a8b327 Another memstick ioctl, minor fixes 2012-11-09 10:01:54 +01:00
Henrik Rydgard
259b169bbc Implement a few more little things 2012-11-08 16:28:45 +01:00