mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
make OSS detect blocking, adjust audio API
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@898 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
d40231e29a
commit
a4edca53b4
11 changed files with 92 additions and 99 deletions
|
@ -273,10 +273,8 @@ static void stdbg(const char *fmt, ...)
|
|||
|
||||
static void updateSound(int len)
|
||||
{
|
||||
if (PicoOpt&8) len<<=1;
|
||||
|
||||
snd_all_samples += len;
|
||||
PsndOut += len;
|
||||
snd_all_samples += len / 2;
|
||||
PsndOut += len / 2;
|
||||
if (PsndOut - snd_cbuff >= snd_cbuf_samples)
|
||||
{
|
||||
//if (PsndOut - snd_cbuff != snd_cbuf_samples)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue