#jsmess 2017-04-09,Sun

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

WhoWhatWhen
***phe has quit IRC (Quit: Leaving) [02:34]
......................... (idle for 2h4mn)
godane has quit IRC (Quit: Leaving.)
godane has joined #jsmess
[04:38]
db48x` has joined #jsmess
db48x has quit IRC (Read error: Operation timed out)
[04:52]
.... (idle for 17mn)
X-Scale has quit IRC (Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC) [05:10]
..................................................... (idle for 4h22mn)
phe has joined #jsmess [09:32]
............... (idle for 1h14mn)
Rai-chan has quit IRC (Ping timeout: 244 seconds) [10:46]
Rai-chan has joined #jsmess [10:52]
.............. (idle for 1h5mn)
bwn has quit IRC (Ping timeout: 244 seconds) [11:57]
bwn has joined #jsmess [12:11]
............................................. (idle for 3h44mn)
phegot the sound working for macplus Sierra Boxing game by patching emscripten library_sld.js: https://hastebin.com/uxixirahoz.js
and in pce-macplus.cfg set cpu speed = 1
it's a bug in empscripten imho
[15:55]
.... (idle for 17mn)
SketchCowGenerally? Or in the case of this?
Like, is this a sound improvement patch?
[16:12]
..... (idle for 24mn)
pheshould work with all, even not PCE based if they request weird sampling rate
See the code and the comment which is in library_sld.js 'An implementation must support sample-rates in at least the range 22050 to 96000.' but dunno why they allowed not the range but some discrete value
so commenting these line allow any freq < 96000
[16:36]
baiwell...if it's not resampling within the range, if what the app supplies is at an in'between value it'll play too fast/pitch shifted [16:44]
..................... (idle for 1h42mn)
DFJustinwhy is it using library_sdl.js and not the full SDL port [18:26]
baisdl 1.3 vs 2.0 [18:27]
..... (idle for 24mn)
db48x`I compiled it with SDL2 the other day, but haven't actually done anything with it yet [18:51]
***db48x` is now known as db48x [18:51]
db48xphe: but I'm also leaning towards setting speed=1
phe: coupled with a change to the outer loop that calculates the right number of cycles to execute each time through
[18:53]
Vito`I suspect some of the performance issues will go away if SDL2 would work
but also you can't actually support any sample rate, right?
the browser still needs one specific sample rate
[18:54]
phespeed = 0 is likely to ask for trouble [18:55]
Vito`we tested for that and set it in the original jsmess loader [18:55]
phebai, sure, but what the best path, ask browser to implement the psc with resampling or do it in each emulator needed it?
*spec
[18:56]
baiVito`: the browser can definitely accept a number of different sample rates, all the standard ones
it just doesn't do weirdo inbetween ones
[18:56]
db48xVito`: yea, PCE only supports one sample rate, but SDL2 does have SDL_ConvertAudio which I can presumably use [18:56]
phelook like ff nightly resample correctly for PCE [18:56]
Vito`bai: is that recent? they didn't use to [18:57]
baiyeah, if sdl can't do the conversion or there isn't a library I'd be surprised
https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sampleRate
that doesn't list the possible values, hmm
I think there's an api call to get a list of sample rates your system supports
[18:57]
pheI think that's different, the audio context use hardware capabilities but the input source can get different sample rate afaics [18:58]
baiyeah [18:59]
Vito`bai: https://github.com/jsmess/jsmess/issues/82 [18:59]
phehttps://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBuffer [18:59]
Vito`at least in 2014, each browser supported only one sample rate, and you had to deliver audio at that rate for the best quality
so we detected it and told mess to output at that, which meant it resampled internally
[18:59]
baihmm, dunno. I've definitely played around with a variety of different samplerates when doing webaudio stuff, but it's not really my strong suit so maybe this comes in through a different set of nodes than I was working with [19:01]
db48xSDL2 still wants us to resample it, but I can try changing from SDL_OpenAudio to SDL_OpenAudioDevice and asking it not to change the sample rate
heh:
missing function: SDL_OpenAudioDevice pce-macplus.js:1:3592
[19:05]
aha!
requested audio format: freq=22255; format=32784; channels=1; samples=512 pce-macplus.js:1:583415
obtained audio format: freq=22255; format=32784; channels=1; samples=512 pce-macplus.js:1:583415
but then ReferenceError: assignment to undeclared variable SDL2 :P
[19:12]
Invalid function pointer '768' called with signature 'vii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this) pce-macplus.js:1:3592 [19:18]
...... (idle for 25mn)
https://github.com/db48x/retroweb-pcejs-jsdf/commit/3d39f826c85090b4aa82759020b4ef135fb7a94e
I can't figure out the function pointer error
db48x recompiles with -g4
[19:43]
somehow that's even less helpful [19:52]
SketchCowI'm sorry I can't get c in here yet, like azakai indicated [20:05]
.............. (idle for 1h7mn)
***godane has quit IRC (ny.us.hub ircd.choopa.net)
balrog has quit IRC (ny.us.hub ircd.choopa.net)
bai has quit IRC (ny.us.hub ircd.choopa.net)
zino has quit IRC (ny.us.hub ircd.choopa.net)
SketchCow has quit IRC (ny.us.hub ircd.choopa.net)
arkiver has quit IRC (ny.us.hub ircd.choopa.net)
datajerk has quit IRC (ny.us.hub ircd.choopa.net)
godane has joined #jsmess
balrog has joined #jsmess
zino has joined #jsmess
SketchCow has joined #jsmess
arkiver has joined #jsmess
datajerk has joined #jsmess
bai has joined #jsmess
ircd.choopa.net sets mode: +oo SketchCow bai
[21:12]

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