Hi,

2012/11/14 Dave Pascoe <[email protected]>:
> Thanks, Romain...somehow I have the syntax wrong for this.
>
> with...
>
> s = ((input.alsa(device="pcm.channel1"):source(1,0,0)))
>
> I get:
>
> At line 11, char 295:
>   this value has type
>     source(audio=1,...) (infered at line 9, char 21-43)
>   but it should be a subtype of
>     source(audio=2+_,...)
>
> I thought the mono/stereo mismatch would generate a different error than my
> originally reported error, but if I can get the syntax right for this test I
> can confirm whether the issue seems to be mono/stereo mismatch.

The problem is probably that your use s as a stereo source in later
parts of the script. For instance, this would not work:

s = (input.alsa(device="pcm.channel1"):source(1,0,0))

output.file(%mp3,"/path/to/file",s)

This is because the %mp3 encoder expects stereo sources by default.
Thus, you need to do:

s = (input.alsa(device="pcm.channel1"):source(1,0,0))

output.file(%mp3(channels=1),"/path/to/file",s)
# or:
# output.file(%mp3(mono),"/path/to/file",s)

Romain

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to