~ubuntu-branches/ubuntu/lucid/portaudio19/lucid

« back to all changes in this revision

Viewing changes to test/patest_write_sine.c

  • Committer: Bazaar Package Importer
  • Author(s): Siegfried-Angel Gevatter Pujals
  • Date: 2009-06-20 14:20:07 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090620142007-meppe3dm383eosey
Tags: 19+svn20090620-0ubuntu1
* New upstream snapshot (LP: #381415):
   - Disable 02_portaudio-non-mmap-alsa.dpatch as it's included upstream.
* Update debian/copyright.
* Change deprecated compat level 4 to level 5 and Standards-Version to 3.8.2.
* Change the Maintainer from MOTU to Core Developers (package is in main now).
* Fix section in portaudio19-doc.doc-base ("Sound", not "Apps/Sound").

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    @author Phil Burk <philburk@softsynth.com>
6
6
*/
7
7
/*
8
 
 * $Id: patest_write_sine.c 1097 2006-08-26 08:27:53Z rossb $
 
8
 * $Id: patest_write_sine.c 1368 2008-03-01 00:38:27Z rossb $
9
9
 *
10
10
 * This program uses the PortAudio Portable Audio Library.
11
11
 * For more information see: http://www.portaudio.com/
86
86
    if( err != paNoError ) goto error;
87
87
 
88
88
    outputParameters.device = Pa_GetDefaultOutputDevice(); /* default output device */
 
89
    if (outputParameters.device == paNoDevice) {
 
90
      fprintf(stderr,"Error: No default output device.\n");
 
91
      goto error;
 
92
    }
89
93
    outputParameters.channelCount = 2;       /* stereo output */
90
94
    outputParameters.sampleFormat = paFloat32; /* 32 bit floating point output */
91
95
    outputParameters.suggestedLatency = Pa_GetDeviceInfo( outputParameters.device )->defaultLowOutputLatency;