Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2001 15:39:37 +0800
From:      Christopher Hall <hsw@acm.org>
To:        ports@freebsd.org
Subject:   audio/cmp3
Message-ID:  <200101100739.f0A7dcg67296@w40.tucheng.generalresources.com>

next in thread | raw e-mail | index | archive | help

I have the following problems with cmp3 port: (cmp3-2.0.p50)

1) patch-aa sets the config file to be "$$\(HOME)/.cmp3rc"
   the original Makefile expanded $(HOME) to the directory of the user
   compiling the program.
     strings `which cmp3` shows the exact text  "$(HOME)/.cmp3rc"

   However, there is no code in cmp3main.c or nevlib/inifile.c to expand
   environment variables.

   Might it be better for patch-aa to substitute "$(PREFIX)/etc/cmp3rc"
   and similar for cmp3ass file.

2) When I attempt to play an mp3 only random noise is produced.

   If I type the same mpg123 command then it plays successfully.
   I can now start cmp3 and keep adding files to play-list
   (they disappear rapidly until the original command finishes)
   until one is started by cmp3.

   Files will play successfully as long as I keep the play-list full.

3) Pause is not immediate takes approximately 15 sec and Kill
   kills many files.  I thought these might both related to buffering
   in the sound driver or mpg123 program.

   therfore I changed the line "mpg123_params := -b 320"
   to "mpg123_params := -b 0" to turn off mpg123 buffer.

   This change seems to fix:
     The random noise at start.
     Kill only kills the file being played.
     Pause now takes 6 seconds to stop sound.
   It does NOT fix:
      Running out the play-list - it is still necessary to quit and restart.

   I did notice that there is only 1 mpg123 process but with -b 320
   there were two, perhaps this was confusing cmp3.

4) I could not get F1 to give help

   I use chinese/rxvt (zh-rxvt-2.7.3_1) and ssh to connect to the
   machine with the sound hardware, as it has no keyboard or display.

   F1 generates <esc>[11~
   TERM=xterm-color

   if change to TERM=vt200 can use F1 but no colour. The sample termcap
   from rxvt produces no colour and no line-drawing graphics.

   I could not see any better entries in /usr/share/misc/termcap.

   This seems to work: (copied from xterm-color, but base changed to vt220)

   setenv TERMCAP \
     "xterm-color:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:tc=vt220:"


The machine configuration is:
  4.2-STABLE #0: Tue Jan  9 14:49:30 CST 2001

  CPU: AMD-K6(tm) 3D processor (300.69-MHz 586-class CPU)
    Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
    Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
    AMD Features=0x80000800<SYSCALL,3DNow!>
  real memory  = 130023424 (126976K bytes)
  avail memory = 122855424 (119976K bytes)
  ...
  pcm0: <Yamaha OPL-SAx> at
        port 0x220-0x22f,0x530-0x537,0x388-0x38f,0x330-0x331,0


Is any one else using this program, if so do you have any comments or
advise on the above?

---
Christopher Hall <hsw@generalresources.com>         Fax: +886-2-2795-3030
Christopher Hall <hsw@acm.org>                    Phone: +886-2-2795-5799


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101100739.f0A7dcg67296>