9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] questions about acd
@ 2002-06-15 14:51 Andrey S. Kukhar
  0 siblings, 0 replies; 7+ messages in thread
From: Andrey S. Kukhar @ 2002-06-15 14:51 UTC (permalink / raw)
  To: 9fans

Hello, guys
1. When I starting acd, +Errors window prints:
cannot dial: '/net.alt/tcp' does not exist(/net.alt/tcp/clone)
What that mean?

2. Why when one track finished, acd don`t play the track on the next
line?

--
regards,
-ask




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [9fans] questions about acd
@ 2002-06-19 15:43 Andrey S. Kukhar
  0 siblings, 0 replies; 7+ messages in thread
From: Andrey S. Kukhar @ 2002-06-19 15:43 UTC (permalink / raw)
  To: Stephen Parker

thank you Stephen, it works fine

--
regards,
-ask

> some changes to acd that i made to get it to work with my cd drive.
> most of the diffs just replace threadprint with fprint to get it
> to compile with 4th edition (this is based on an early 4th ed
> version, maybe the sources have changed since).
>
> the main change is around :58 in main.c where i play the next track
> if the state is unknown (which is what my player reports when the
> track finishes).

> also cddb lookup can be turned off.  as i mentioned yesterday if
> i don't do this then soon after the call to dial i get a broken
> process.  i haven't tracked this down yet.
>
> stephen
>
> --
> Stephen Parker.  Pi Technology.  +44 (0)1223 203438.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [9fans] questions about acd
@ 2002-06-18  6:57 Stephen Parker
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Parker @ 2002-06-18  6:57 UTC (permalink / raw)
  To: '9fans@cse.psu.edu'

[-- Attachment #1: Type: text/plain, Size: 1380 bytes --]

some changes to acd that i made to get it to work with my cd drive.
most of the diffs just replace threadprint with fprint to get it
to compile with 4th edition (this is based on an early 4th ed
version, maybe the sources have changed since).

the main change is around :58 in main.c where i play the next track
if the state is unknown (which is what my player reports when the
track finishes).

also cddb lookup can be turned off.  as i mentioned yesterday if
i don't do this then soon after the call to dial i get a broken
process.  i haven't tracked this down yet.

stephen

--
Stephen Parker.  Pi Technology.  +44 (0)1223 203438.

> -----Original Message-----
> From: Andrey S. Kukhar [mailto:plan9@kp.km.ua]
> Sent: 17 June 2002 15:01
> To: Stephen Parker
> Subject: Re: [9fans] questions about acd
>
>
> show me what you got (pretty obvious stuff)
>
> --
> regards,
> -ask
>
> > i've found that my cdrom reports "no status" after playing a track
> > and therefore acd stops.  i've fixed it at home and can
> send a patch,
> > but it is pretty obvious stuff.
>
> > less obvious is that if acd tries to connect to the cddb on
> my non-networked
> > pc i get a broken process soon after dial is called.  i
> haven't tracked that
> > down yet.
>
> > stephen
>
> > --
> > Stephen Parker.  Pi Technology.  +44 (0)1223 203438.
>
>


[-- Attachment #2: diffs --]
[-- Type: application/octet-stream, Size: 3158 bytes --]

diff /n/d/acme/bin/source/acd//acd.h ./acd.h
113c113
< extern int msfconv(va_list*, Fconv*);
---
> extern int msfconv(Fmt*);
157c157
< #define DPRINT if(debug)threadprint
---
> #define DPRINT if(debug)fprint
diff /n/d/acme/bin/source/acd//acme.c ./acme.c
178c178
< 	threadprint(w->data, "Title\n\n");
---
> 	fprint(w->data, "Title\n\n");
184,185c184,185
< 		threadprint(w->data, "%s%d/ Track %d\n", i==playing ? "> " : "", i+1, i+1);
< 	threadprint(w->data, "");
---
> 		fprint(w->data, "%s%d/ Track %d\n", i==playing ? "> " : "", i+1, i+1);
> 	fprint(w->data, "");
258c258
< 		threadprint(2, "unknown message %c%c\n", e->c1, e->c2);
---
> 		fprint(2, "unknown message %c%c\n", e->c1, e->c2);
diff /n/d/acme/bin/source/acd//cddb.c ./cddb.c
52c52
< 		fprint(2, "cannot dial: %r\n");
---
> 		fprint(2, "cannot dial: %%r\n");
Only in .: diffs
diff /n/d/acme/bin/source/acd//main.c ./main.c
3a4
> int nocddb;
8c9
< 	threadprint(2, "usage: acd dev\n");
---
> 	fprint(2, "usage: acd dev\n");
58c59
< 			if(s.state == Scompleted) {
---
> 			if(s.state == Scompleted || s.state == Sunknown) {
97a99
> 	char	*dev;
102a105,108
> 		break;
> 	case 'n':
> 		nocddb++;
> 		break;
105c111,119
< 	if(argc != 1)
---
> 	switch (argc){
> 	case 0:
> 		dev = strdup("/dev/sdD0");
> 		break;
> 	case 1:
> 		dev = strdup(argv[0]);
> 		break;
> 	default:
> 		dev = 0;
106a121,122
> 		break;
> 	}
110c126
< 	if((s = openscsi(argv[0])) == nil)
---
> 	if((s = openscsi(dev)) == nil)
126c142,143
< 	proccreate(cddbproc, d, STACK);
---
> 	if (!nocddb)
> 		proccreate(cddbproc, d, STACK);
129,130c146,147
< 	cleanname(argv[0]);
< 	snprint(buf, sizeof(buf), "%s/", argv[0]);
---
> 	cleanname(dev);
> 	snprint(buf, sizeof(buf), "-acd%s/", dev);
diff /n/d/acme/bin/source/acd//mmc.c ./mmc.c
4c4
< msfconv(va_list *va, Fconv *fp)
---
> msfconv(Fmt *f)
7d6
< 	char buf[40];
9,12c8,9
< 	m = va_arg(*va, Msf);
< 	sprint(buf, "%d.%d.%d", m.m, m.s, m.f);
< 	strconv(buf, fp);
< 	return 0;
---
> 	m = va_arg(f->args, Msf);
> 	return fmtprint(f, "%d.%d.%d", m.m, m.s, m.f);
194c191
< 		threadprint(2, "disk changed underfoot; repeating\n");
---
> 		fprint(2, "disk changed underfoot; repeating\n");
218c215
< 	threadprint(1, "%d tracks\n", t->ntrack);
---
> 	fprint(1, "%d tracks\n", t->ntrack);
268a266
> 	DPRINT(2, "playstatus: %d\n", resp[1]);
292c290
< 	//DPRINT(2, "d %d %d t %d %d\n", d->scsi->changetime, d->scsi->nchange, t.changetime, t.nchange);
---
> 		DPRINT(2, "d %ld %d t %d %d\n", d->scsi->changetime, d->scsi->nchange, t.changetime, t.nchange);
diff /n/d/acme/bin/source/acd//util.c ./util.c
68c68
< 	threadprint(2, "Mail: ");
---
> 	fprint(2, "Acd: ");
70c70
< 	n = doprint(buf, buf+sizeof buf, fmt, arg) - buf;
---
> 	n = vsnprint(buf, sizeof buf, fmt, arg);
85c85
< 	n = doprint(buf, buf+sizeof buf, fmt, arg) - buf;
---
> 	n = vsnprint(buf, sizeof buf, fmt, arg);
diff /n/d/acme/bin/source/acd//win.c ./win.c
182c182
< 	threadprint(w->event, "%c%c%d %d\n", e->c1, e->c2, e->q0, e->q1);
---
> 	fprint(w->event, "%c%c%d %d\n", e->c1, e->c2, e->q0, e->q1);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [9fans] questions about acd
@ 2002-06-17 14:59 Stephen Parker
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Parker @ 2002-06-17 14:59 UTC (permalink / raw)
  To: '9fans@cse.psu.edu'

i'll dig it out.  its at home (and i'm not).

stephen

--
Stephen Parker.  Pi Technology.  +44 (0)1223 203438.

> -----Original Message-----
> From: Andrey S. Kukhar [mailto:plan9@kp.km.ua]
> Sent: 17 June 2002 15:01
> To: Stephen Parker
> Subject: Re: [9fans] questions about acd
>
>
> show me what you got (pretty obvious stuff)
>
> --
> regards,
> -ask
>
> > i've found that my cdrom reports "no status" after playing a track
> > and therefore acd stops.  i've fixed it at home and can
> send a patch,
> > but it is pretty obvious stuff.
>
> > less obvious is that if acd tries to connect to the cddb on
> my non-networked
> > pc i get a broken process soon after dial is called.  i
> haven't tracked that
> > down yet.
>
> > stephen
>
> > --
> > Stephen Parker.  Pi Technology.  +44 (0)1223 203438.
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] questions about acd
  2002-06-17  7:55 Stephen Parker
@ 2002-06-17 14:00 ` Andrey S. Kukhar
  0 siblings, 0 replies; 7+ messages in thread
From: Andrey S. Kukhar @ 2002-06-17 14:00 UTC (permalink / raw)
  To: Stephen Parker

show me what you got (pretty obvious stuff)

--
regards,
-ask

> i've found that my cdrom reports "no status" after playing a track
> and therefore acd stops.  i've fixed it at home and can send a patch,
> but it is pretty obvious stuff.

> less obvious is that if acd tries to connect to the cddb on my non-networked
> pc i get a broken process soon after dial is called.  i haven't tracked that
> down yet.

> stephen

> --
> Stephen Parker.  Pi Technology.  +44 (0)1223 203438.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [9fans] questions about acd
@ 2002-06-17  7:55 Stephen Parker
  2002-06-17 14:00 ` Andrey S. Kukhar
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Parker @ 2002-06-17  7:55 UTC (permalink / raw)
  To: '9fans@cse.psu.edu'

i've found that my cdrom reports "no status" after playing a track
and therefore acd stops.  i've fixed it at home and can send a patch,
but it is pretty obvious stuff.

less obvious is that if acd tries to connect to the cddb on my non-networked
pc i get a broken process soon after dial is called.  i haven't tracked that
down yet.

stephen

--
Stephen Parker.  Pi Technology.  +44 (0)1223 203438.

> -----Original Message-----
> From: Russ Cox [mailto:rsc@plan9.bell-labs.com]
> Sent: 15 June 2002 17:04
> To: 9fans@cse.psu.edu
> Subject: Re: [9fans] questions about acd
>
>
> > 1. When I starting acd, +Errors window prints:
> > cannot dial: '/net.alt/tcp' does not exist(/net.alt/tcp/clone)
> > What that mean?
>
> Your network isn't set up so that acd can dial
> the FreeDB CD database, apparently.
>
> > 2. Why when one track finished, acd don`t play the track on the next
> > line?
>
> I don't know -- it should.
>
> Russ
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] questions about acd
@ 2002-06-15 16:03 Russ Cox
  0 siblings, 0 replies; 7+ messages in thread
From: Russ Cox @ 2002-06-15 16:03 UTC (permalink / raw)
  To: 9fans

> 1. When I starting acd, +Errors window prints:
> cannot dial: '/net.alt/tcp' does not exist(/net.alt/tcp/clone)
> What that mean?

Your network isn't set up so that acd can dial
the FreeDB CD database, apparently.

> 2. Why when one track finished, acd don`t play the track on the next
> line?

I don't know -- it should.

Russ



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-06-19 15:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-15 14:51 [9fans] questions about acd Andrey S. Kukhar
2002-06-15 16:03 Russ Cox
2002-06-17  7:55 Stephen Parker
2002-06-17 14:00 ` Andrey S. Kukhar
2002-06-17 14:59 Stephen Parker
2002-06-18  6:57 Stephen Parker
2002-06-19 15:43 Andrey S. Kukhar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).