Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: pulseaudio IO module

Date2008-11-01 18:08
Fromvictor
Subject[Csnd] Re: Re: pulseaudio IO module
I noticed there were a couple of places where I impiled MYFLT => float, so
I fixed this in CVS now. However, that might not have been the problem.

Victor
----- Original Message ----- 
From: "cochedelaferte" 
To: 
Sent: Saturday, November 01, 2008 5:00 PM
Subject: [Csnd] Re: pulseaudio IO module


>
> Hi Victor,
>
>
>
> First, great thank's for vour rtpulse module : it's for Solaris/Sparc the
> best way to get realtime audio output.
>
> For the moment i have some difficulties to perform that fully, but i think
> that they should really solvable.
>
>
> 1) I launch Pulseaudio :
>
> bash-3.00# /usr/local/bin/64/pulseaudio/pulseaudio -vv
> W: This program is not intended to be run as root (unless --system is
> specified).
> I: device opened in O_RDWR mode.
> I: created 0 "solaris_input" with sample spec "s16be 2ch 44100Hz"
> I: created 0 "solaris_output" with sample spec "s16be 2ch 44100Hz"
> I: created 1 "solaris_output.monitor" with sample spec "s16be 2ch 44100Hz"
> I: Loaded "module-solaris" (index: #0; argument: "device=/dev/audio").
> I: loaded 1 modules.
> I: Loaded "module-detect" (index: #1; argument: "").
> I: Loaded "module-esound-protocol-unix" (index: #2; argument: "").
> I: loading cookie from disk.
> I: Loaded "module-native-protocol-unix" (index: #3; argument: "").
> I: starting with empty ruleset.
> I: Loaded "module-volume-restore" (index: #4; argument: "").
> I: Loaded "module-rescue-streams" (index: #5; argument: "").
> I: Loaded "module-gconf" (index: #6; argument: "").
> I: Daemon startup complete.
> I: Unloading "module-detect" (index: #1).
> I: Unloaded "module-detect" (index: #1).
>
>
> I changeded nothing in any of the three Pulsaudio config files, but it
> appears clearly that, from the build itself and also from the 
> module-detect
> action my config is fully recognized. But something can be missing without 
> i
> know if yes or not...
> Also, at this point i'm able to play immediately with Paplay any .wav file 
> i
> have, by example any provided after a compilation by Orch.
>
>
>
> 2) I launch Csound :
>
> bash-3.00# ./csound -o dac examples/trapped.csd -+rtaudio=pulse
> 0dBFS level = 32768,0
> Csound version 5.09 (float samples) Oct 28 2008
> libsndfile-1.0.17
> UnifiedCSD:  examples/trapped.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> orchname:  /var/tmp/aaaDpaq1c.orc
> scorename: /var/tmp/baaEpaq1c.sco
> rtaudio: pulseaudio module enabled
> orch compiler:
> 397 lines read
>        instr   1
>        instr   2
>        instr   3
>        instr   4
>        instr   5
>        instr   6
>        instr   7
>        instr   8
>        instr   9
>        instr   10
>        instr   11
>        instr   12
>        instr   13
>        instr   98
>        instr   99
> Elapsed time at end of orchestra compile: real: 0.108s, CPU: 0.020s
> sorting score ...
>        ... done
> Elapsed time at end of score sort: real: 0.112s, CPU: 0.020s
> Csound version 5.09 (float samples) Oct 28 2008
> displays suppressed
> 0dBFS level = 32768.0
> orch now loaded
> audio buffered in 256 sample-frame blocks
> PulseAudio output server: default
> writing 1024-byte blks of shorts to dac
> SECTION 1:
> ftable 1:
> ftable 2:
> ftable 3:
> ftable 4:
> ftable 5:
> ftable 6:
> ftable 7:
> ftable 8:
> ftable 9:
> ftable 10:
> ftable 11:
> ftable 12:
> ftable 13:
> ftable 14:
> ftable 15:
> ftable 16:
> ftable 17:
> ftable 18:
> ftable 19:
> ftable 20:
> ftable 21:
> ftable 22:
> new alloc for instr 1:
>
>
> And at this point, it stops. I omitted to tell that, no invoking the
> realtime output, trapped.csd compiles as well and provides the .wav file.
>
>
> Here the output from Pulseaudio :
>
> I: created 0 "Native client (UNIX socket client)"
> I: client 0 changed name from "Native client (UNIX socket client)" to
> "csound"
> I: created 0 "csound-out" on solaris_output with sample spec float32le 2ch
> 44100Hz
> D: Memory block too large for pool: 1048576 > 16368
> D: memblockq requested: maxlength=264600, tlength=176400, base=8,
> prebuf=174636, minreq=1764
> D: memblockq sanitized: maxlength=264600, tlength=176400, base=8,
> prebuf=174640, minreq=1760
> I: Creating new entry for 
> D: Solaris buffer underflow!
>
>
> - as you can see, i launched just with "-o dac" because for me /dev/audio 
> is
> the standard Pulseaudio output. I can also specify "-o dac:0", that gives
> the same thing.
>
> - the problem of "Memory block too large for pool: 1048576 > 16368" : i 
> have
> that with, apparently, any example files. For the moment i have no 
> solution
> for that, even wusing -b -B which works fine for all eventuals memory 
> block
> warnings i can get after. Other hand, it seems that here isn't the 
> problem,
> because just playing by example Xanadu.wav i get also this kind of warning
> without that affects a really good musical output.
>
>
>
> 3) Launching xanadu with realtime output :
>
> It starts, prints the graphic, and stops at :
>
> new alloc for instr 1:
> new alloc for instr 3:
> new alloc for instr 3:
> new alloc for instr 3:
> new alloc for instr 3:
> new alloc for instr 3:
> new alloc for instr 3:
> B  0.000 ..  0.100 T  0.100 TT  0.100 M:   1997.6   1999.2
> new alloc for instr 1:
> B  0.100 ..  0.200 T  0.200 TT  0.200 M:   5810.3   3944.8
> new alloc for instr 1:
>
>
>
> Here the Pulseaudio output :
>
> I: created 5 "Native client (UNIX socket client)"
> I: client 5 changed name from "Native client (UNIX socket client)" to
> "csound"
> I: Restoring volume for 
> I: Restoring sink for 
> I: created 5 "csound-out" on solaris_output with sample spec float32le 2ch
> 44100Hz
> D: Memory block too large for pool: 1048576 > 16368
> D: memblockq requested: maxlength=264600, tlength=176400, base=8,
> prebuf=174636, minreq=1764
> D: memblockq sanitized: maxlength=264600, tlength=176400, base=8,
> prebuf=174640, minreq=1760
>
>
> As you see, this time no question of "buffer underflow". Just it stops.
>
>
> - trying several experiences with -b -B, i some cases i get some parasit
> sound, that means that there is really a connection btw Csound and
> Pulseaudio. Also, the Pulsaudio output confirms that.
>
>
>
> OK : sorry to post so a long message, but it seemed me important to 
> provide
> both Pulseaudio and Csound outputs.
>
> If you have a bit time to think all that about, can you tell me if that
> gives you any idea at any way i can try to learn more ?
>
>
>
> Cheers,
>
>
> Sergio
>
>
>
>
>
>
> -- 
> View this message in context: 
> http://www.nabble.com/pulseaudio-IO-module-tp16342198p20282143.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-11-01 19:31
Fromcochedelaferte
Subject[Csnd] Re: Re: pulseaudio IO module


I noticed there were a couple of places where I impiled MYFLT => float, so
I fixed this in CVS now. However, that might not have been the problem.


Thank's for your so fast reply !

No luck, it stops at the same points. But a new thing : i no longer get the
"Solaris buffer underflow!" with trapped.csd.

- maybe also my issue isn't strictly rtpulse.c related...

Cheers,

Sergio
-- 
View this message in context: http://www.nabble.com/pulseaudio-IO-module-tp16342198p20283773.html
Sent from the Csound - General mailing list archive at Nabble.com.