Quote from: Joseman on 12:19, 29 March 23One question:
if all the sockets are opened in old connections, and only close socket1, the m4 will allways try to get first socket1? or there is some case that it will try first to open socket>1
thankyou!!
Quote from: Duke on 11:01, 29 March 23At last!!! it seems to work!! thankyou!!Quote from: Joseman on 10:34, 29 March 23Hi @DukeYou should close the socket before opening it, to ensure it is closed after the reset/crash.
I'm unabled to get socket1 and only socket1
the first time it's ok, I get socket 1.
Reset the cpc (not the M4), socket1 remains open
Execute the routine get_socket, and I do a "if socket >1 --> close socket"
do a bucle until socket1 free
but it never exist the bucle
it's like that the M4 is not closing sockets and then the bucle never exist
are you sure that the M4 is capable to close sockets that was open on old connections before reset the CPC?
maybe i'm doing something wrong, but i followed your source code as you explain
Ie.; close socket 1 first thing
ld hl,cmdclose
call sendcmd
; you can check return value, if -1, then the socket was not open, thus could not be closed.
; ...
; then open a new socket
; ...
ld hl,cmdsocket
call sendcmd
; should return socket 1 (first avaiable socket)
; ...
ret
cmdclose:
db &03
dw C_NETCLOSE
db 1 ; socket 1
cmdsocket:
db 5
dw C_NETSOCKET
db &0,&0,&6 ; domain, type, protocol (TCP/IP)
Quote from: ZbyniuR on 05:15, 29 March 23Reason why they combine channels is pitch, how many octaves we have possible beetwen lowest and highest sound. And makes better precise of pitch for each note, without combine most notes sounds false.Thanks for the info! I thought he was speaking about volume, not about pitch.
Quote from: ZbyniuR on 05:15, 29 March 23Digitracker on CPC can play 5bits sample using all 3 channels, (because 4bit play in left and right channels together is twice louder than 1 middle channel)Not sure, if there is another Digitracker for the CPC
Quote from: ZbyniuR on 05:15, 29 March 23PIO [...] works as buffer, so Z80 can in part of second send info about all tones for next half minute and doing something else.At least on the CPC this is wrong. The PIO isn't a buffer, which can play PSG sound for half a minute without the CPU. Maybe you are mixing this with another system?
Quote from: Joseman on 10:34, 29 March 23Hi @DukeYou should close the socket before opening it, to ensure it is closed after the reset/crash.
I'm unabled to get socket1 and only socket1
the first time it's ok, I get socket 1.
Reset the cpc (not the M4), socket1 remains open
Execute the routine get_socket, and I do a "if socket >1 --> close socket"
do a bucle until socket1 free
but it never exist the bucle
it's like that the M4 is not closing sockets and then the bucle never exist
are you sure that the M4 is capable to close sockets that was open on old connections before reset the CPC?
maybe i'm doing something wrong, but i followed your source code as you explain
; close socket 1 first thing
ld hl,cmdclose
call sendcmd
; you can check return value, if -1, then the socket was not open, thus could not be closed.
; ...
; then open a new socket
; ...
ld hl,cmdsocket
call sendcmd
; should return socket 1 (first avaiable socket)
; ...
ret
cmdclose:
db &03
dw C_NETCLOSE
db 1 ; socket 1
cmdsocket:
db 5
dw C_NETSOCKET
db &0,&0,&6 ; domain, type, protocol (TCP/IP)
Page created in 0.046 seconds with 18 queries.