Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4766] FW: [sc-dev] RE: SC3 build on Win32

Date2004-05-23 16:26
From"gogins@pipeline.com"
Subject[CSOUND-DEV:4766] FW: [sc-dev] RE: SC3 build on Win32
AttachmentsEuresysLogoS.gif  
I'm wondering if this is relevant to Csound...

Original Message:
-----------------
From: Benjamin Golinvaux Benjamin.Golinvaux@euresys.com
Date: Sun, 23 May 2004 14:11:56 +0200
To: catharsis@egregious.net, sc-dev@create.ucsb.edu
Subject: [sc-dev] RE: SC3 build on Win32


hi Mike
(cross-posting to sc-dev@create.ucsb.edu)

i'm still working on the SC3 Win32 build. I have created a small GUI
application
that allows to choose the audio devices (in & out) and output channels. It
should
be ready soon.

Meanwhile, have a look at the current portaudio device init code :

        env = getenv("SC_PORTAUDIO_INPUTS");
        if (env == 0) env = "2";
        mInputChannelCount = std::max(2, atoi(env));

        // create outputs according to SC_PORTAUDIO_OUTPUTS (default 2)
        env = getenv("SC_PORTAUDIO_OUTPUTS");
        if (env == 0) env = "2";
        mOutputChannelCount = std::max(2, atoi(env));

    *outNumSamples = mWorld->mBufLength;
    *outSampleRate = 44100.; ///$$$TODO fixme use the cmd-line supplied
param

    PaError paerror = Pa_OpenDefaultStream( &mStream, mInputChannelCount,
mOutputChannelCount,
            paFloat32 | paNonInterleaved, *outSampleRate, *outNumSamples,
SC_PortAudioStreamCallback, this );
    if( paerror != paNoError )
        PRINT_PORTAUDIO_ERROR( Pa_OpenDefaultStream, paerror );

    return paerror == paNoError;

This basically means that you should be able to enable multi-channel i/o
(if the build you're using uses this code, 
which i found in a recent cvs upgrade) by defining the SC_PORTAUDIO_INPUTS
and SC_PORTAUDIO_OUTPUTS
environment variables (My Computer -> Properties -> Advanced -> Environment
Variables)

Hope this helps.
 
Best,
 
Benjamin



-----Message d'origine-----
De : Catharsis [mailto:catharsis@egregious.net
 ]
Envoyé : Thursday, May 20, 2004 9:09 AM
À : Benjamin Golinvaux
Objet : RE: SC3 build on Win32

At 12:01 AM 5/20/2004, you wrote:
>ok. i also have a multichannel audio interface (rme hammerfall) so i
>can maybe focus on trying to solve the multichannel issues once the
>basic stuff works. i hope no serious portaudio issues are involved

Excellent.. I look forward to hearing about your progress.. Thanks for
working on this!

Best,
--Mike

Lead Developer, Scream: http://audio.egregious.net/scream/
 
--------------------------------------------------------
 The information contained in this message or any of its attachments may be
privileged and confidential and intended for the exclusive use of the
addressee. If you are not the addressee any disclosure, reproduction,
distribution or other dissemination or use of this communication is
strictly prohibited. If you have received this transmission by error please
notify the sender immediately and then delete this email.  EURESYS shall
not be liable for any loss of or damage to revenues, profits, goodwill,
data, information systems or other special, incidental, indirect,
consequential or punitive damages of any kind arising in connection with
the use of information contained in this mail or its attachments.  Email
transmission cannot be guaranteed to be secure or error free as information
could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses.  The sender therefore is in no way liable
for any errors or omissions in the content of this message, which may arise
as a result of email transmission. If verification is required, please
request a hard copy.  Please note that neither EURESYS, nor the sender
accepts any responsibility for viruses and it is your responsibility to
scan attachments (if any). 
  
--------------------------------------------------------


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .