Commit Graph
86 Commits
Author SHA1 Message Date
Henrik Rydgård 27c059bf9e Really no need to call clear() in the constructor for AudioChannel.
However if this helps #13271, something is very wrong...
2020-08-12 00:22:54 +02:00
Unknown W. Brackets b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets 4c46867230 Audio: Avoid exposing fixed size queue in header. 2020-08-10 08:03:44 +00:00
Unknown W. Brackets 4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
shenweip d195cba837 Flush audio buffer when a transmission is completed. 2020-07-31 17:10:00 +08:00
shenweip c7e2eba231 Add basic Microphone support on Windows. 2020-07-31 10:24:17 +08:00
Unknown W. Brackets 20ad7f2914 Audio: Track SRC frequency.
sceAudioSetFrequency is kernel mode only, and it sounds like it changes
the audio controller clock (didn't test.)  SRC only affects the SRC
channel.

Currently, this doesn't actually use the sample rate yet, but at least
it's tracked appropriately.
2019-06-30 23:09:46 -07:00
Unknown W. Brackets 9ef3973b49 Audio: Correct sceAudioChRelease return value. 2019-06-30 23:09:07 -07:00
Unknown W. Brackets 7d2b332b2d Audio: Improve error messages for sample counts. 2019-06-30 16:39:14 -07:00
Unknown W. Brackets 2c20567624 Audio: Better errors on Output2/SRC reserve.
The frequency handling probably doesn't work, though.
2019-06-23 08:38:22 -07:00
Unknown W. Brackets c67988d2ce Audio: Correct errors on Output2/SRC release. 2019-06-23 08:17:00 -07:00
Chris Burgener 7d089a0f76 Clean up various files 2016-09-03 19:23:17 -04:00
Unknown W. Brackets fcf0518223 Update all the HLE tables with arg and ret info. 2015-03-22 20:51:55 -07:00
Henrik Rydgard bfa52e61a3 Some games spam sceAudioGetChannelGetLength, reduce loglevel to VERBOSE to ease debugging 2015-03-01 15:33:35 +01:00
Lioncash 4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
raven02 950e404442 Fix a typo 2014-04-22 14:31:34 +08:00
raven02 0ca4ec02cd Implment sceAuduo routing mode 2014-04-19 06:47:54 +08:00
Unknown W. Brackets 05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
raven02 32cae21bb7 sceAudio : better logging 2014-02-02 23:45:23 +08:00
Unknown W. Brackets 5ff589a0d9 Minor logging improvements in sceAudio. 2013-11-25 01:02:59 -08:00
Unknown W. Brackets 50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Henrik Rydgard 324cde5a79 Let's actually use the log category mechanism. A first step. 2013-09-07 21:19:21 +02:00
Unknown W. Brackets 6804f239b4 sceAudioOutputPannedBlocking() bad volume check. 2013-09-05 01:01:57 -07:00
Unknown W. Brackets 19c4c20f46 Correct sceAudioOutput2GetRestSample().
Should be samples, not bytes.
2013-09-05 00:50:20 -07:00
Unknown W. Brackets 8f25829b06 Change sceAudioOutput* unreseved ch errors.
Tests show it should be this other error code.
2013-08-28 22:35:05 -07:00
Henrik Rydgard ee37d51c4b Just some formatting/cleanup 2013-08-24 11:56:40 +02:00
Unknown W. Brackets ddc2c15ce8 Remove some unsigned < 0 comparisons. 2013-07-26 22:12:12 -07:00
oioitff 67154f69eb Revert fix in #2092 2013-06-06 06:10:26 +08:00
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