reSID icon indicating copy to clipboard operation
reSID copied to clipboard

How to use?

Open NS-Clone opened this issue 1 year ago • 3 comments

to fill the buffer we need use this int clock(cycle_count& delta_t, short* buf, int n, int interleave = 1);

but what is this cycle_count& delta_t ??? o_O it decreasing used variable after clock() using and after it becomes < 0 sound mutes and it doesn't take unsigned variable on input (i get cannot bind non-const lvalue reference of type) in some emulator there is putting constant value of SID frequecny (1MHz)

i tryed put there random values current sid tick etc and all produces same result only 1 produces glitchy sound

... also i need get 1MHz sample rate with 1 sample (tick) out

i make set_sampling_parameters to 1MHZ clock and 1MHz sample and use clock( delta_t, buf, 1, 1); and looks like it works and i doesn't get series of same sample outputs every tick even

but can resid/filters works right in this mode? do i need this resample modes? or it's needs only for downsampling to 44100?

NS-Clone avatar Jan 07 '25 01:01 NS-Clone

delta_t is the number of cpu cycles that have passed since the last call to the function, on exit it returns the number of cycles not consumed

See https://github.com/daglem/reSID/blob/master/src%2Fsid.cc#L746

drfiemost avatar Jan 07 '25 14:01 drfiemost

but why it doesn't works with 1? i get wrong octaves extra noises etc

i think i write to sid no so fast

max possible write speed from my cpu is about 3 sid ticks but maybe i write to sid much slower (20+ sid ticks)

NS-Clone avatar Jan 07 '25 20:01 NS-Clone

recordings delta_1.zip delta_2.zip delta_1M.zip

NS-Clone avatar Jan 07 '25 20:01 NS-Clone