<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.audio.portaudio.devel">
    <title>gmane.comp.audio.portaudio.devel</title>
    <link>http://blog.gmane.org/gmane.comp.audio.portaudio.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10666"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10660"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10658"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10655"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10636"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10630"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10623"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10619"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10613"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10611"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10607"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10606"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10595"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10594"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10593"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10586"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10583"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10581"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10579"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10574"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10666">
    <title>wasapi loopback devices detection?</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10666</link>
    <description>&lt;pre&gt;I applied the patch I found in this message:
http://music.columbia.edu/pipermail/portaudio/2013-January/014834.html

I tried running the example pa_devs.c to see my loopback devices but I
didn't see any listed. Should the pa_devs example list them or do I
need to change the code?

I am pretty certain I have some loopback devices on this machine, I've
seen them listed in other audio software.

Thanks.

&lt;/pre&gt;</description>
    <dc:creator>Tony Miller</dc:creator>
    <dc:date>2013-06-17T18:08:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10660">
    <title>Problem with Pa_WriteStream with MOTU 896HD</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10660</link>
    <description>&lt;pre&gt;Dear all,

I am having problems running portaudio with my MOTU sound card.
I use the blocking call Pa_WriteStream with the code attached below. 
The code runs properly (i.e. output all 0) with all audio interfaces except for my MOTU 896HD, 
in which case it hangs at Pa_WriteStream without ever outputting "run".

I compile it with the latest Xcode (4.6.2), latest MOTU drivers, latest stable portaudio.
The cpp project in Xcode is left with all standard options.
The sound card (set at 44.1KHz with internal clock) is connected via firewire 
to my Mac Pro running OSX 10.8.4.

I tried to run Matlab's playrec (which is based on portaudio) and, interestingly, 
it works well with the MOTU sound card too.

Any suggestion/help is greatly appreciated! Thanks!
And many apologies in advance in case this is too much of a newbie question..

Best,


Enzo



------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------

#include "portaudio.h"
#include &amp;lt;iostream&amp;gt;

void PaErrorHandler(PaError, PaStream*);


int main(int argc, char *argv[]) {
  const double sampling_frequency = 44100;
  
  PaStream *stream;
  PaError err;
  
  std::cout&amp;lt;&amp;lt;"Starting portaudio...\n";std::cout.flush();
  
  err = Pa_Initialize();
  if( err != paNoError ) { PaErrorHandler(err, NULL); }
  
  const   PaDeviceInfo *deviceInfo;
  int numDevices = Pa_GetDeviceCount();
  for(int i=0; i&amp;lt;numDevices; ++i) {
    deviceInfo = Pa_GetDeviceInfo( i );
    std::cout&amp;lt;&amp;lt;"Device id:"&amp;lt;&amp;lt;i&amp;lt;&amp;lt;", name: "&amp;lt;&amp;lt;deviceInfo-&amp;gt;name&amp;lt;&amp;lt;
    ", max output channels: "&amp;lt;&amp;lt;deviceInfo-&amp;gt;maxOutputChannels&amp;lt;&amp;lt;"\n";
  }
  std::cout&amp;lt;&amp;lt;"Select the device id: ";
  int outDevNum;
  std::cin &amp;gt;&amp;gt; outDevNum;
  const int max_num_channels(Pa_GetDeviceInfo(outDevNum)-&amp;gt;maxOutputChannels);
  
  
  
  PaStreamParameters outputParameters;
  bzero( &amp;amp;outputParameters, sizeof( outputParameters ) );
  outputParameters.channelCount = Pa_GetDeviceInfo(outDevNum)-&amp;gt;maxOutputChannels;
  outputParameters.device = outDevNum;
  outputParameters.hostApiSpecificStreamInfo = NULL;
  outputParameters.sampleFormat = paFloat32;
  outputParameters.suggestedLatency = Pa_GetDeviceInfo(outDevNum)-&amp;gt;defaultLowOutputLatency ;
  outputParameters.hostApiSpecificStreamInfo = NULL; //See you specific host's API docs for info on using this field
  
  const int frames_per_buffer = 200;
  
  /* Open an audio I/O stream. */
  err = Pa_OpenStream(&amp;amp;stream,
                      NULL,
                      &amp;amp;outputParameters,
                      sampling_frequency,
                      frames_per_buffer,
                      paNoFlag, //flags that can be used to define dither, clip settings and more
                      NULL, //your callback function
                      NULL); //data to be passed to callback. In C++, it is frequently (void *)this
  if(err != paNoError) { PaErrorHandler(err, stream); }
  
  err = Pa_StartStream(stream);
  if(err != paNoError) { PaErrorHandler(err, stream); }
  
  float sample_block[frames_per_buffer*max_num_channels];
  for (int i=0; i&amp;lt;frames_per_buffer*max_num_channels; ++i) {
    sample_block[i] = (float)0.0;
  }
  const int num_frames = 1000;
  
  for (int i=1; i&amp;lt;num_frames; ++i) {
    
    err = Pa_WriteStream( stream, sample_block, frames_per_buffer );
    if( err != paNoError ) { PaErrorHandler(err, stream); }
    std::cout&amp;lt;&amp;lt;"run"&amp;lt;&amp;lt;std::endl;
  }
  
  err = Pa_StopStream( stream );
  if( err != paNoError ) { PaErrorHandler(err, stream); }
  
  Pa_Terminate();
  return 0;
}




void PaErrorHandler(PaError err, PaStream* stream) {
  fprintf( stderr, "An error occured while using the portaudio stream\n" );
  fprintf( stderr, "Error number: %d\n", err );
  fprintf( stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
  if( stream ) {
    Pa_AbortStream( stream );
    Pa_CloseStream( stream );
  }
  Pa_Terminate();
  exit(1);
}


---------------------------------------------------------
Enzo De Sena 
Ph.D. research student
Institute of Telecommunications
King's College London
Strand, London, WC2R 2LS, UK
+44 (0) 20 7848 1138
www.enzo.desena.name
enzo.desena&amp;lt; at &amp;gt;kcl.ac.uk
&lt;/pre&gt;</description>
    <dc:creator>De Sena, Enzo</dc:creator>
    <dc:date>2013-06-08T21:50:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10658">
    <title>[PATCH] coreaudio: suppress deprecated API warnings</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10658</link>
    <description>&lt;pre&gt;Deprecated APIs are use intentionally to preserve compatibility with older Mac
OS X releases.  Since -Werror is used this would normally result in a
compilation failure.  Tell gcc to ignore deprecated APIs for coreaudio hostapi
files that make use of them.

See also ticket #218.

Signed-off-by: Stefan Hajnoczi &amp;lt;stefanha&amp;lt; at &amp;gt;gmail.com&amp;gt;
---
 src/hostapi/coreaudio/pa_mac_core.c           | 2 ++
 src/hostapi/coreaudio/pa_mac_core_utilities.c | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/src/hostapi/coreaudio/pa_mac_core.c b/src/hostapi/coreaudio/pa_mac_core.c
index 1cef082..847721e 100644
--- a/src/hostapi/coreaudio/pa_mac_core.c
+++ b/src/hostapi/coreaudio/pa_mac_core.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -71,6 +71,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 #include "pa_mac_core_utilities.h"
 #include "pa_mac_core_blocking.h"
 
+/* Use deprecated APIs for compatibility with older OS X versions */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 
 #ifdef __cplusplus
 extern "C"
diff --git a/src/hostapi/coreaudio/pa_mac_core_utilities.c b/src/hostapi/coreaudio/pa_mac_core_utilities.c
index 63e616f..4929b6d 100644
--- a/src/hostapi/coreaudio/pa_mac_core_utilities.c
+++ b/src/hostapi/coreaudio/pa_mac_core_utilities.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -63,6 +63,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 #include &amp;lt;pthread.h&amp;gt;
 #include &amp;lt;sys/time.h&amp;gt;
 
+/* Use deprecated APIs for compatibility with older OS X versions */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
 PaError PaMacCore_SetUnixError( int err, int line )
 {
    PaError ret;
&lt;/pre&gt;</description>
    <dc:creator>Stefan Hajnoczi</dc:creator>
    <dc:date>2013-06-08T07:43:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10655">
    <title>Opening and closing streams frequently</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10655</link>
    <description>&lt;pre&gt;Hey there,

I'm using portaudio in an app that needs to play both stereo and mono
signals.  Their playback doesn't overlap, however.  To play the signals
should I open a stream in mono and close it, and then open a stream in
stereo and close it, etc?  Or is it more correct to convert the mono into a
stereo signal so that it can be output on a stereo stream and I can avoid
frequently opening and closing a stream?

Thanks,
Tyler
_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Tyler Martin</dc:creator>
    <dc:date>2013-06-07T18:08:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10636">
    <title>Callback Full Duplex</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10636</link>
    <description>&lt;pre&gt;Hi all,

I have a question on the callback in a situation when the device handles both input and output. Does portaudio differentiate between when the device has recorded new input and when the device needs new output? And if so, how can I make the callback do the right thing? It seems that when device has new input, the callback would also refill the outputbuffer. Would this cause any problems?

Best

Wouter
&lt;/pre&gt;</description>
    <dc:creator>Wouter Janmaat</dc:creator>
    <dc:date>2013-06-02T20:14:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10630">
    <title>Random beep tone when opening stream</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10630</link>
    <description>&lt;pre&gt;Hi all,

I use portaudio when opening my application. It opens up a stream for every audiodevice it finds which has either input or output channels. Sometimes when starting the application the program sends a loud beeping tone to the output of the soundcard. My callbuck function is empty and I use the settings from the tutorial to open the streams.

Any ideas?
&lt;/pre&gt;</description>
    <dc:creator>Wouter Janmaat</dc:creator>
    <dc:date>2013-05-31T16:56:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10623">
    <title>For Port audio player</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10623</link>
    <description>&lt;pre&gt;Dear Sir/Madam,

i am working on sound editing in asp.net using c#. i have completed c++
function successfully calling  in my c#  application.

please help me how to use port audio player api for playing wave file and
edit them programmatically.

&lt;/pre&gt;</description>
    <dc:creator>Nitin Rajput</dc:creator>
    <dc:date>2013-05-30T12:25:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10619">
    <title>Paqa_latency print typos &amp; QA check</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10619</link>
    <description>&lt;pre&gt;Phil,

While reading output from paqa_latency I noticed the printouts say 'Output'
when reporting for input (there is also one rogue tab).

Also there seemed no reason not to enable the QA_ASSERT check of default high
latency to be greater than the low (now // out), except that it should allow
them to be equal.  However, there may be a good reason!

The diff looks like this:-

--- ../svn-working-copy/qa/paqa_latency.c2013-04-27 15:29:30.000000000 +0100
+++ qa/paqa_latency.c2013-05-29 17:55:36.000000000 +0100
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -255,7 +255,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
     {
         numLoops = 1;
     }
-
+
     for( i=0; i&amp;lt;numLoops; i++ )
     {   
         if( numLoops == 1 )
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -361,15 +361,15 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
             printf("  Output defaultHighOutputLatency = %f seconds\n", pdi-&amp;gt;defaultHighOutputLatency);
             QA_ASSERT_TRUE( "defaultLowOutputLatency should be &amp;gt; 0", (pdi-&amp;gt;defaultLowOutputLatency &amp;gt; 0.0) );
             QA_ASSERT_TRUE( "defaultHighOutputLatency should be &amp;gt; 0", (pdi-&amp;gt;defaultHighOutputLatency &amp;gt; 0.0) );
-            //QA_ASSERT_TRUE( "defaultHighOutputLatency should be &amp;gt; Low", (pdi-&amp;gt;defaultHighOutputLatency &amp;gt; pdi-&amp;gt;defaultLowOutputLatency) );
+            QA_ASSERT_TRUE( "defaultHighOutputLatency should be &amp;gt;= Low", (pdi-&amp;gt;defaultHighOutputLatency &amp;gt;= pdi-&amp;gt;defaultLowOutputLatency) );
         }
         if( pdi-&amp;gt;maxInputChannels &amp;gt; 0 )
         {
-            printf("  Input defaultLowOutputLatency  = %f seconds\n", pdi-&amp;gt;defaultLowInputLatency);
-            printf("  Input defaultHighOutputLatency = %f seconds\n", pdi-&amp;gt;defaultHighInputLatency);
-            QA_ASSERT_TRUE( "defaultLowOutputLatency should be &amp;gt; 0", (pdi-&amp;gt;defaultLowInputLatency &amp;gt; 0.0) );
-            QA_ASSERT_TRUE( "defaultHighOutputLatency should be &amp;gt; 0", (pdi-&amp;gt;defaultHighInputLatency &amp;gt; 0.0) );
-            //QA_ASSERT_TRUE( "defaultHighOutputLatency should be &amp;gt; Low", (pdi-&amp;gt;defaultHighInputLatency &amp;gt; pdi-&amp;gt;defaultLowInputLatency) );
+            printf("  Input defaultLowInputLatency  = %f seconds\n", pdi-&amp;gt;defaultLowInputLatency);
+            printf("  Input defaultHighInputLatency = %f seconds\n", pdi-&amp;gt;defaultHighInputLatency);
+            QA_ASSERT_TRUE( "defaultLowInputLatency should be &amp;gt; 0", (pdi-&amp;gt;defaultLowInputLatency &amp;gt; 0.0) );
+            QA_ASSERT_TRUE( "defaultHighInputLatency should be &amp;gt; 0", (pdi-&amp;gt;defaultHighInputLatency &amp;gt; 0.0) );
+            QA_ASSERT_TRUE( "defaultHighInputLatency should be &amp;gt;= Low", (pdi-&amp;gt;defaultHighInputLatency &amp;gt;= pdi-&amp;gt;defaultLowInputLatency) );
         }
     }
     return 0;

I can commit this change if you wish?

Regards

Alan
_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Alan Horstmann</dc:creator>
    <dc:date>2013-05-29T17:02:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10613">
    <title>Functionality similar to LineIn passthrough?</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10613</link>
    <description>&lt;pre&gt;Greetings all.

I need to develop a replacement for the LineIn application for osx. It 
allows you to pipe line in into system output.  I'm wondering if 
portaudio is the place for me to make an application that does this, or 
not, as I am not entirely certain if this is the domain portaudio 
handles.  Thanks for any pointers.

Joshua Kordani
LSA Autonomy
_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Joshua Kordani</dc:creator>
    <dc:date>2013-05-28T22:54:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10611">
    <title>Buffering Latency and Timing</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10611</link>
    <description>&lt;pre&gt;Ross,

The questions from Alexander have prompted me to pick-up some investigations I 
was doing some time ago on the Alsa and OSS latency values suggested and 
reported etc, and using paqa_latency.

I've been re-reading 'BufferingLatencyAndTimingImplementationGuidelines' and 
wanted to check my understanding.

The Alsa implementation is similar to a 'N-buffer ringbuffer' scheme; 2 common 
configurations arise, either with 4 buffers (=Alsa periods) in the 
ringbuffer, or with just 2.

By my reading the reported output latency should be the time of:
 (whole ringbuffer - one buffer(=period))  since the user should start filling 
when there is one buffer(=period) of space in the ringbuffer.

At present the Alsa code reports and uses the time delay of the whole 
ringbuffer, which seems to be a mistake?  With N=4 the latency I would expect 
to be 3/4 of the ringbuffer, and that is the figure OSS reports on a 
configured stream.  With N=2 then the latency is just one buffer(=period) 
long, or have I mis-understood?

Regards

Alan
&lt;/pre&gt;</description>
    <dc:creator>Alan Horstmann</dc:creator>
    <dc:date>2013-05-28T21:17:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10607">
    <title>PS</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10607</link>
    <description>&lt;pre&gt;PS:

I experimented on this by trying to immediately fill the outputbuffer with whatever is in the inputbuffer by in the callback setting:

const float *in = (const float*)inputbuffer;
float *out = (float*)outputbuffer;

*out = *in;

This compiles and I see that the device is initiated but the callback is never called. In debug the errorcode is -9988
&lt;/pre&gt;</description>
    <dc:creator>Wouter Janmaat</dc:creator>
    <dc:date>2013-05-28T13:47:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10606">
    <title>Simultaneous Recording/Playback Callback</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10606</link>
    <description>&lt;pre&gt;Hi all,

I have a question about the way portaudio handles a callback when Pa_OpenStream is used with both input and output parameters.
Is the callback supplied in the Pa_OpenStream called when both audio is recorded and when the outputbuffer needs audio or do you need to seperate the recording and playing back of the file.

I would like to have one stream managing both the input and output.

Thanks,
&lt;/pre&gt;</description>
    <dc:creator>Wouter Janmaat</dc:creator>
    <dc:date>2013-05-28T13:10:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10595">
    <title>WASAPI callback buffering mode</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10595</link>
    <description>&lt;pre&gt;Hello!

I'm working on a music title that's using PortAudio (Win/WASAPI), and I had a few questions regarding I/O stream latency.  The title takes an audio stream from a USB audio device, processes the audio, and then sends it to the audio output device.

My goal is to have the lowest possible overall latency (input + output).  Therefore I'm wanting to use the WASAPI callback event interface, which supposedly can have 3ms latency on the input or output.

I've found that when I set up the input and output streams, if I pass any value of PaStreamParameters::suggestedLatency, then PortAudio will force the polling WASAPI callback interface.
I was under the impression that one was supposed to use suggestedLatency as a "hint" to Pa_OpenStream().  I got that idea from the document "Guidelines for implementing PortAudio buffering, latency, and timing".

So, if I set suggestedLatency to 0.0, then WASAPI will use the event interface, but if I try to specify any suggestedLatency other than 0.0, then it uses the polling interface (with supposedly much higher latency than the event interface).

Am I doing something wrong?  Why would I not want to use the WASAPI callback event interface?

What could I be doing differently to minimize latency?

Thank you very much for your help!

Matt McCallus
Audio Programmer
Ubisoft Red Storm

_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Matt McCallus</dc:creator>
    <dc:date>2013-05-23T20:18:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10594">
    <title>Controlling Recording Level with PortAudio</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10594</link>
    <description>&lt;pre&gt;I am currently successfully running a Visual Studio Application that incorporates PortAudio to send and receive data from the soundcard. I want to be able to change the recording level via software. The only way I can currently change this level in Win7  is by right clicking the speaker icon-&amp;gt;recording devices-&amp;gt;select external mic-&amp;gt;levels. 

Is there a way to change this level in software via Port Audio???

Neal

_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Neal</dc:creator>
    <dc:date>2013-05-23T19:53:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10593">
    <title>leak in pa_linux_alsa.c</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10593</link>
    <description>&lt;pre&gt;Hi,
it looks like there's a memory leak in pa_linux_alsa.c.

In the past method PaAlsaStreamComponent_EndProcessing was the
responsible for freeing variable nonMmapBuffer, but now it's not freed
anymore because it's reused.

This is an issue if a portaudio stream is opened/closed many times, as
I did in the past. As a workaround, now I only open the stream once,
and I just start/stop it for any play, so that I have a single memory
leak. However, in case each sound that I play has a different
configuration, I would need to close/reopen the stream constantly, and
I'd have a leak for each sound play.

I guess it should be deleted at PaAlsaStream_Terminate.




--
salutacions

Dani Pinyol

Alfred Adler - "The only normal people are the one's you don't know very well."
&lt;/pre&gt;</description>
    <dc:creator>Daniel Pinyol Laserna</dc:creator>
    <dc:date>2013-05-22T16:09:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10586">
    <title>Compiling Portaudio for OSX 10.8.3</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10586</link>
    <description>&lt;pre&gt;Hi All,

it's my first time using PortAudio and I'm currently trying to compile for OSX 10.8.3 using the ./config &amp;amp;&amp;amp; make commands from the tutorial but I keep getting errors. They look like this:

checking build system type... i386-apple-darwin12.3.0
checking host system type... i386-apple-darwin12.3.0
checking target system type... i386-apple-darwin12.3.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/wouterjanmaat/Downloads/portaudio':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details


I tried using the disable universal binaries flag but that didn't help.I tried both the latest nightly build and the latest stable build.

Please help me out

Thanks

Wouter
&lt;/pre&gt;</description>
    <dc:creator>Wouter Janmaat</dc:creator>
    <dc:date>2013-05-13T14:39:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10583">
    <title>Linux Latency problem</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10583</link>
    <description>&lt;pre&gt;_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Alexander Carôt</dc:creator>
    <dc:date>2013-05-13T07:45:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10581">
    <title>Portaudio and Remote Desktop Sessions</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10581</link>
    <description>&lt;pre&gt;Hello,

I am using the latest version of Portaudio, from svn.  It is built into iaxclient.dll.  It works very well on Windows XP and Windows 7 , but I have having odd issues with the audio when using Remote Desktop Connection (from windows 7 64 bit) to a remote desktop session (Windows 2008 Server).  I allow the microphone and speaker of windows 7 to be available over the RDC.  I can see them on the RDS, as "Remote Audio", but when I use them, the audio is very broken up in both directions.

If I check the audio from the local mic to the RDS, via an audio recorder, the quality is fine.

Any ideas?

Thanks

Geordi
_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Geordi Sinclair</dc:creator>
    <dc:date>2013-05-10T17:18:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10579">
    <title>Buffer alignment requirement of various audio format</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10579</link>
    <description>&lt;pre&gt;Hi All,

I've some question on requirement of alignment of data buffer used by
Pa_WriteStream or Pa_Callback.
I want to support for two audio format paInt16 and paFloat32.
So do I've to align my data buffer on 32byte boundary for paFloat32 and
16byte boundary of paInt16?

Also if I use Pa_RingBuffer in my application do I ever need to worry about
alignment or ring buffer internally take care of alignment?

Please share some thoughts.

Regards,
Pradeep
_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Pradeep Kumar</dc:creator>
    <dc:date>2013-05-07T07:42:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10574">
    <title>Pa_Initialize crash</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10574</link>
    <description>&lt;pre&gt;Hello,

I am trying to use portaudio in my Qt desktop app to use the audio
IO functionality  but I am not being able to initialize the library.

My project will build fine but as soon as I execute it it will crash
automatically if I have the Pa_Initialize() call in it. If I comment it out
it continues with no problem.

I did a whole new blank project and I only have this in it:

MainWindow::MainWindow(QWidget *parent)

    : QMainWindow(parent)

{

    // Test UI with just one button

     button = new QPushButton(tr("OKK"), this);

    connect(button, SIGNAL(clicked()), this, SLOT(close()));


    PaError err;

    err = Pa_Initialize();


    if(err != paNoError){

        qDebug() &amp;lt;&amp;lt; "Pa_Initialize passed ... ";

        return;

    }

    else

        qDebug() &amp;lt;&amp;lt; "THERE WAS AN ERROR";

}


can anyone help me out to what could be the problem?

The error I get when the program stops is:


The program has unexpectedly finished.

C:\Qt\dev\Projects\build-PaTest_record-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\PaTest_record
exited with code -1073741515


Any help greatly appreciated, Thanks.
_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Sergio Teran</dc:creator>
    <dc:date>2013-05-06T10:32:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10567">
    <title>Noise when writing silence in pa_callback</title>
    <link>http://comments.gmane.org/gmane.comp.audio.portaudio.devel/10567</link>
    <description>&lt;pre&gt;Hi,

I've an user application which does both audio and video processing. I'm
getting loud noise whenever the playback is interrupted in the middle i.e
if application is playing a video file and suddenly user initiate some
other task from application, then playback is interrupted to its current
state  till the new task finishes, Now during this interruption since I'm
not decoding any audio sample my ring buffer is empty and I'm writing
silence in callback. However I'm hearing loud noise instead.
Please suggest what could be going wrong.

Thanks and Regards,
Pradeep
_______________________________________________
Portaudio mailing list
Portaudio&amp;lt; at &amp;gt;music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio&lt;/pre&gt;</description>
    <dc:creator>Pradeep Kumar</dc:creator>
    <dc:date>2013-05-02T11:59:33</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.audio.portaudio.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.audio.portaudio.devel</link>
  </textinput>
</rdf:RDF>
