sox, sb live! a nahravanie

Ladislav Danko ladislav.danko na acsnet.sk
Úterý Duben 1 09:40:31 CEST 2003


pozdravujem konferu,

stretol sa niekto (alebo mi niekto vie dat nejake info) ohladom tohto? 
teda o co ide:

pri pokuse o nahravanie:
$>sox -V -c 2 -r 44100 -s -w -t ossdsp /dev/dsp -v 2 -c 2 -r 44100 -s -w 
-t wav rs_2.wav
ma odmietne (zarve segmentation fault)?
pritom tymto:
$>sox -V -c 2 -r 32000 -s -w -t ossdsp /dev/dsp -v 2 -c 2 -r 44100 -s -w 
-t wav rs_2.wav
uz nahrava bez problemov;

vypis ked sa pokusim nahravat s 44100 vzorkovacou frekvenciou:
sox: Volume factor: 2.000000
Segmentation fault

a ked sa pokusim nahravat s 38200 vzorkovacou frekvenciou (ratam s tym, 
ze sam ju prestavi na 44100):
sox: Volume factor: 2.000000
sox: Unable to set audio speed to 38200 (set to 44100)
Segmentation fault


(pre nahravanie pouzivam aux in 2 z predneho panela na sb live! karte, 
pred samotnym nahravanim si upravujem routovanie pomocou -r a -a 
prepinacov emu-dspmgr)

potom mam este otazku ohladom sucastneho nahravania a odposluchu ale tu 
sa uz do tohto neodvazim zahrnut :o)) tak mozno o chvilu;

pouzivam sox v 12.17.3, slack8.1, emu-dspmgr -d vypisuje nasledovne 
(vypis sox -h pod tym): dik za akekolvek info;

laco.


Usage Summary:
--------
Instructions : 34
GPRS:          23 (last used is 26)

Tram
 Internal
   buffers:    0
   space  :    0x000000
 External
   buffers:    0
   space  :    0x000000

Input patches:

  Name: Pcm L vol
    lines : "Pcm L"

  gprs:
    addr: 0x100   usage: 0x02   type: IO (Output)   line: Pcm L
    addr: 0x106   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: pcm_l
      range: 0000000000 - 0x7fffffff   value: 0x4c1bf828
    addr: 0x112   usage: 0x02   type: DYNAMIC
  code:
    start: 00000
    size: 0x004
    0x400   0x00444840  0x00000044  4 0x112 0x040 00000 0x044
    0x402   0x00040040  0x00044906  0 0x100 0x040 0x112 0x106

  Name: Pcm R vol
    lines : "Pcm R"

  gprs:
    addr: 0x101   usage: 0x02   type: IO (Output)   line: Pcm R
    addr: 0x107   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: pcm_r
      range: 0000000000 - 0x7fffffff   value: 0x4c1bf828
    addr: 0x112   usage: 0x02   type: DYNAMIC
  code:
    start: 0x004
    size: 0x004
    0x404   0x00444840  0x00000444  4 0x112 0x040 0x001 0x044
    0x406   0x00040440  0x00044907  0 0x101 0x040 0x112 0x107

  Name: CD-Digital Vol L
    lines : "CD-Spdif L"

  gprs:
    addr: 0x10c   usage: 0x02   type: IO (Output)   line: CD-Spdif L
    addr: 0x10d   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: dig1_l
      range: 0000000000 - 0x7fffffff   value: 0x16a09e66
  code:
    start: 0x008
    size: 0x002
    0x408   0x00043040  0x0000490d  0 0x10c 0x040 0x012 0x10d

  Name: CD-Digital Vol R
    lines : "CD-Spdif R"

  gprs:
    addr: 0x10e   usage: 0x02   type: IO (Output)   line: CD-Spdif R
    addr: 0x10f   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: dig1_r
      range: 0000000000 - 0x7fffffff   value: 0x16a09e66
  code:
    start: 0x00a
    size: 0x002
    0x40a   0x00043840  0x00004d0f  0 0x10e 0x040 0x013 0x10f

  Name: Multi-Channel Gain
    lines : "fx8"  "fx9"  "fx10"  "fx11"  "fx12"  "fx13"

  gprs:
    addr: 0x113   usage: 0x02   type: IO (Output)   line: fx8
    addr: 0x114   usage: 0x02   type: IO (Output)   line: fx9
    addr: 0x115   usage: 0x02   type: IO (Output)   line: fx10
    addr: 0x116   usage: 0x02   type: IO (Output)   line: fx11
    addr: 0x117   usage: 0x02   type: IO (Output)   line: fx12
    addr: 0x118   usage: 0x02   type: IO (Output)   line: fx13
  code:
    start: 0x00c
    size: 0x00c
    0x40c   0x00444c40  0x00002044  4 0x113 0x040 0x008 0x044
    0x40e   0x00445040  0x00002444  4 0x114 0x040 0x009 0x044
    0x410   0x00445440  0x00002844  4 0x115 0x040 0x00a 0x044
    0x412   0x00445840  0x00002c44  4 0x116 0x040 0x00b 0x044
    0x414   0x00445c40  0x00003044  4 0x117 0x040 0x00c 0x044
    0x416   0x00446040  0x00003444  4 0x118 0x040 0x00d 0x044

Routing patch:

  gprs:
    addr: 0x100   usage: 0x02   type: IO (Input)    line: Pcm L
    addr: 0x101   usage: 0x02   type: IO (Input)    line: Pcm R
    addr: 0x104   usage: 0x02   type: IO (Output)   line: fx8
    addr: 0x105   usage: 0x02   type: IO (Output)   line: fx9
    addr: 0x10a   usage: 0x02   type: IO (Output)   line: fx2
    addr: 0x10b   usage: 0x02   type: IO (Output)   line: fx3
    addr: 0x10c   usage: 0x02   type: IO (Input)    line: CD-Spdif L
    addr: 0x10e   usage: 0x02   type: IO (Input)    line: CD-Spdif R
    addr: 0x113   usage: 0x02   type: IO (Input)    line: fx8
    addr: 0x114   usage: 0x02   type: IO (Input)    line: fx9
    addr: 0x115   usage: 0x02   type: IO (Input)    line: fx10
    addr: 0x116   usage: 0x02   type: IO (Input)    line: fx11
    addr: 0x117   usage: 0x02   type: IO (Input)    line: fx12
    addr: 0x118   usage: 0x02   type: IO (Input)    line: fx13
  Routes:
    Pcm L:Front L
    Pcm L:Digital L
    Pcm L:Phones L
    Pcm L:Rear L
    Pcm R:Front R
    Pcm R:Digital R
    Pcm R:Phones R
    Pcm R:Rear R
    Pcm1 L:Rear L
    Pcm1 R:Rear R
    fx8:Front L
    fx8:Digital L
    fx9:Front R
    fx9:Digital R
    fx10:Rear L
    fx11:Rear R
    fx12:Digital Center
    fx12:Analog Center
    fx13:Digital LFE
    fx13:Analog LFE
    Analog L:Digital L
    Analog L:Rear L
    Analog R:Digital R
    Analog R:Rear R
    CD-Spdif L:Front L
    CD-Spdif L:Digital L
    CD-Spdif L:Rear L
    CD-Spdif R:Front R
    CD-Spdif R:Digital R
    CD-Spdif R:Rear R
    RCA Aux L:ADC Rec L
    RCA Aux R:ADC Rec R

  code:
    start: 0x018
    size: 0x024
    0x418   0x00608100  0x00044d0c  6 0x020 0x100 0x113 0x10c
    0x41a   0x00608501  0x0004510e  6 0x021 0x101 0x114 0x10e
    0x41c   0x00642900  0x00044c10  6 0x10a 0x100 0x113 0x010
    0x41e   0x0064290a  0x00043040  6 0x10a 0x10a 0x10c 0x040
    0x420   0x00642d01  0x00045011  6 0x10b 0x101 0x114 0x011
    0x422   0x00642d0b  0x00043840  6 0x10b 0x10b 0x10e 0x040
    0x424   0x00609117  0x00010040  6 0x024 0x117 0x040 0x040
    0x426   0x00609518  0x00010040  6 0x025 0x118 0x040 0x040
    0x428   0x00609900  0x00010040  6 0x026 0x100 0x040 0x040
    0x42a   0x00609d01  0x00010040  6 0x027 0x101 0x040 0x040
    0x42c   0x00641100  0x00001115  6 0x104 0x100 0x004 0x115
    0x42e   0x00641104  0x0000410c  6 0x104 0x104 0x010 0x10c
    0x430   0x00641501  0x00001516  6 0x105 0x101 0x005 0x116
    0x432   0x00641505  0x0000450e  6 0x105 0x105 0x011 0x10e
    0x434   0x0060a81c  0x00010040  6 0x02a 0x01c 0x040 0x040
    0x436   0x0060ac1d  0x00010040  6 0x02b 0x01d 0x040 0x040
    0x438   0x0060c517  0x00010040  6 0x031 0x117 0x040 0x040
    0x43a   0x0060c918  0x00010040  6 0x032 0x118 0x040 0x040

Output patches:

  Name: Vol Rear L
    input line : "Rear L"
    output line: "Rear L"

  gprs:
    addr: 0x104   usage: 0x02   type: IO (Input)    line: Rear L
    addr: 0x119   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: ogain_l
      range: 0000000000 - 0x7fffffff   value: 0x16a09e66
  code:
    start: 0x03c
    size: 0x002
    0x43c   0x0000a040  0x00041119  0 0x028 0x040 0x104 0x119

  Name: Vol Rear R
    input line : "Rear R"
    output line: "Rear R"

  gprs:
    addr: 0x105   usage: 0x02   type: IO (Input)    line: Rear R
    addr: 0x11a   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: ogain_r
      range: 0000000000 - 0x7fffffff   value: 0x16a09e66
  code:
    start: 0x03e
    size: 0x002
    0x43e   0x0000a440  0x0004151a  0 0x029 0x040 0x105 0x11a

  Name: Vol Master L 1
    input line : "Digital L"
    output line: "Digital L"

  gprs:
    addr: 0x108   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: vol_l
      range: 0000000000 - 0x7fffffff   value: 0x035d13f3
    addr: 0x10a   usage: 0x02   type: IO (Input)    line: Digital L
  code:
    start: 0x040
    size: 0x002
    0x440   0x00008840  0x00042908  0 0x022 0x040 0x10a 0x108

  Name: Vol Master R 1
    input line : "Digital R"
    output line: "Digital R"

  gprs:
    addr: 0x109   usage: 0x01   type: CONTROL
      name:  Vol                       mixer: vol_r
      range: 0000000000 - 0x7fffffff   value: 0x035d13f3
    addr: 0x10b   usage: 0x02   type: IO (Input)    line: Digital R
  code:
    start: 0x042
    size: 0x002
    0x442   0x00008c40  0x00042d09  0 0x023 0x040 0x10b 0x109


$>sox -h:
sox: Version 12.17.3

Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [ effopts ] ]

gopts: -e -h -p -v volume -V

fopts: -r rate -c channels -s/-u/-U/-A/-a/-i/-g/-f -b/-w/-l -x

effect: avg band bandpass bandreject chorus compand copy dcshift deemph 
earwax echo echos fade filter flanger highp highpass lowp lowpass map 
mask pan phaser pitch polyphase rate resample reverb reverse silence 
speed stat stretch swap synth trim vibro vol

effopts: depends on effect

Supported file formats: aiff al au auto avr cdr cvs dat vms gsm hcom la 
lu maud nul ossdsp raw sb sf sl smp sndt sph 8svx sw txw ub ul uw voc 
vorbis wav wve


Další informace o konferenci Linux