Csound Csound-dev Csound-tekno Search About

[Csnd] -n disables audio output

Date2014-02-02 12:44
Fromzappfinger
Subject[Csnd] -n disables audio output
Something strange, it looks like setting '-n' option via the api also
disables audio output to dac.
See the following example:

class csoundServer():
	def __init__(self):
		# setup csound
		csoundInitialize(3)
		self.csound = Csound()
		self.csound.SetOption("-odac3")
		#self.csound.SetOption("-n")   
		self.csound.SetOption("-b 1024") 
		self.csound.SetOption("-B 2048") 

This produces sound with the loaded csd (not shown here)

When I uncomment the '-n' option line, I get no audio output. It should only
suppress writing a file to disk.  

Richard
  



--
View this message in context: http://csound.1045644.n5.nabble.com/n-disables-audio-output-tp5732156.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-02-02 12:53
Fromzappfinger
Subject[Csnd] Re: -n disables audio output
Ok, got it. Maybe the docs could be more clear on this.

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/n-disables-audio-output-tp5732156p5732160.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-02-02 12:53
FromVictor Lazzarini
SubjectRe: [Csnd] -n disables audio output
No, “disk” means everything. So -n will stop sound going everywhere. By setting -o dac3 you will stop sound going to disk.
On 2 Feb 2014, at 12:44, zappfinger  wrote:

> Something strange, it looks like setting '-n' option via the api also
> disables audio output to dac.
> See the following example:
> 
> class csoundServer():
> 	def __init__(self):
> 		# setup csound
> 		csoundInitialize(3)
> 		self.csound = Csound()
> 		self.csound.SetOption("-odac3")
> 		#self.csound.SetOption("-n")   
> 		self.csound.SetOption("-b 1024") 
> 		self.csound.SetOption("-B 2048") 
> 
> This produces sound with the loaded csd (not shown here)
> 
> When I uncomment the '-n' option line, I get no audio output. It should only
> suppress writing a file to disk.  
> 
> Richard
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/n-disables-audio-output-tp5732156.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 



Date2014-02-02 13:03
FromVictor Lazzarini
SubjectRe: [Csnd] Re: -n disables audio output
Most definitely.
On 2 Feb 2014, at 12:53, zappfinger  wrote:

> Ok, got it. Maybe the docs could be more clear on this.
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/n-disables-audio-output-tp5732156p5732160.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
>