#jsmess 2017-04-06,Thu

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
SketchCowReading over eating is how I learned about why the British subjugated india
Spices, baby
Also, there was a secret spice island
[00:36]
baispices, drugs, and tea - the cornerstones of an empire [00:38]
SketchCowI bet every time db48x reads about the panama canal, he imagines boxes of PCE [00:40]
baieach ship going through the locks is like one simulator cycle being passed through the synchronous processing thread
the stationmaster has to blow the horn for 30 seconds, and while he's blowing the horn he can't operate the locks, so there's a delay while the sound plays
[00:41]
***Panasonic has joined #jsmess [00:42]
.... (idle for 16mn)
SketchCowAnd we're like a bunch of longshoremen running along throwing bricks onto the boats to see if they make it through the locks faster [00:58]
.... (idle for 16mn)
***phe has quit IRC (Quit: Leaving) [01:14]
........ (idle for 35mn)
SketchCowI think Dan has (wisely) decided to run off to join the panama canal [01:49]
.............. (idle for 1h9mn)
db48xheh [02:58]
................... (idle for 1h33mn)
***pfalleno1 has quit IRC (Ping timeout: 250 seconds) [04:31]
.................................................. (idle for 4h6mn)
pfallenop has joined #jsmess [08:37]
..... (idle for 24mn)
pfalleno1 has joined #jsmess
pfallenop has quit IRC (Write error: Connection reset by peer)
[09:01]
............... (idle for 1h10mn)
phe has joined #jsmess [10:11]
......................................... (idle for 3h23mn)
SketchCowhttps://lolcommits.github.io/ [13:34]
............. (idle for 1h1mn)
https://archive.org/details/softwarelibrary_mac officially has descriptions or has had quality checks for all items. [14:35]
So, regarding sound. Are we stalled?
Do we need to bring in more people to look at it? Or something else?
[14:41]
................................... (idle for 2h53mn)
db48xall we need to do is bring in someone who already knows how to fix it [17:34]
***Panasonic has quit IRC (Ping timeout: 244 seconds) [17:38]
............... (idle for 1h10mn)
azakai has joined #jsmess [18:48]
azakaiSketchCow: hi [18:49]
.... (idle for 15mn)
SketchCowright on schedule
alon, we're tryibg to make a javascript emulator not suck at sond.
sound
db48x can give some insight
emulator is at http://archive.org/detaild/softwarelibrary_mac
details
[19:04]
db48xazakai: howdy [19:07]
azakaiso i know there is some work on audio workers in browsers, but otherwise I don't think there is much new stuff usable right now
the best person to ask about how to optimize sound in the current tech is clb on #emscripten, but he's on vacation atm
[19:19]
db48xI'll keep an eye out for him then
in the mean time, do you know much about the SDL port?
I've not yet looked into how it's implemented, but what we've noticed is that it seems to play the entire sound buffer every frame
[19:22]
azakaidb48x: sdl1 or sdl2? [19:25]
db48xsdl1
but let me double-check that
yea, 1.3.0
[19:26]
azakaiok, then clb is again the best to ask, as he's worked on it more recently then me. but i did work on it earlier. let me take a look
db48x: sdl1 has a few ways to play audio, which api is this using?
(raw audio vs an audio file to be decoded)
[19:35]
db48xraw audio [19:39]
azakaiso Mix_QuickLoad? [19:39]
db48xhere's where we open the device: https://github.com/db48x/retroweb-pcejs-jsdf/blob/pcejs-cycles-per-frame/src/drivers/sound/sound-sdl.c#L248 [19:40]
azakaior OpenAudio perhaps [19:41]
db48xOpenAudio [19:41]
azakaiyeah, openAudio
ok, i remember clb rewrote this a lot, to try to optimize it.
might be best to read the code inside SDL_OpenAudio in src/library_sdl.js in emscripten. there are a bunch of parameters there like when to queue more to play etc
the pushAudio functions etc look like the relevant parts
[19:41]
db48xbah, here's something I should have checked earlier:
requested audio format: freq=22255; format=32784; channels=1; samples=1024 pce-macplus.js:1:367033
obtained audio format: freq=32000; format=32784; channels=1; samples=1024 pce-macplus.js:1:367033
I require comestibles; backson
[19:58]
Vito`probably a lot of work to convert pce to sdl2 right [20:03]
....... (idle for 33mn)
***Ravenloft has joined #jsmess [20:36]
....... (idle for 33mn)
db48xVito`: no idea
Hampa Hug has sent me some helpful emails, however
"At every horizontal blank, one byte is read out of the sound buffer and buffered in mac_sound_t.buf[]. At every vertical blank one packet of 370 samples is written to the sound driver using snd_write()."
that's how the original hardware worked
[21:09]
...... (idle for 26mn)
***azakai has quit IRC (Read error: Operation timed out) [21:36]
SketchCowI have one other question which maybe jvilk can answer.
is it possible to compress the hd images?
they load in seconds in .gz but 40mb of hard drive is a loy
lit
lot.
and when this is announced, people will go crazy on that one.
[21:48]
db48xthe ZipFS can't deal correctly when a zip contains only a single file, rather than a directory full of files
(or we're using it wrong, of course)
[21:50]
SketchCowbrb, rachel birthday dinner
thabks so much for all this work, dan
[21:52]
db48xyw
enjoy dinner :)
[22:01]
baidb48x: wait, really? I thought I'd used single-file zips before
but, that being said, if the web server is configured properly, it'll be sent gzipped over the wire anyway
[22:09]
db48xbai: yep
bai: and I've mentioned that before, but somehow IA hasn't fixed it.
[22:10]
baijust rename the .img or whatever as .html, maybe it's configured to do that by default :D [22:14]
db48xlol [22:25]
....... (idle for 34mn)
oops, that loop is slightly infinite [22:59]
hrm, not really an improvement: http://erebor.db48x.net:8000/example_macplus.html [23:12]
ok, that's annoying [23:20]
baiwhich loop are you changing here? [23:20]
db48xin snd_sdl_callback I'm resampling the audio to match what SDL has asked us to output
I left in the outer while loop, but didn't decrement cnt
[23:22]
baiah ok. can't we also just tell sdl the format we'll be outputting? or does it only accept one rate? [23:29]
db48xwe do tell it what format we want, but it pushes back and tells us what we're allowed to do [23:32]
baiI see [23:39]
db48xso PCE asks for a sample rate of 22255 (yes), and SDL says "well, 32000 would be nicer" [23:40]
bai"look, if you're going to make me run in this weirdo frankenstein environment, the least you could do is speak to me at a rate I can understand" [23:40]
db48xyea
I dunno why it doesn't just resample it for us
[23:40]
.... (idle for 19mn)
hrm
for some reason, I'm getting -32768 every time I read from the source buffer :P
[23:59]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)