~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to lib-src/portmixer/src/px_linux_alsa.c

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
 
217
217
   info = (PxInfo *) Px->info;
218
218
 
219
 
   card = PaAlsa_GetInputCard(Px->pa_stream);
220
 
   if (card >= 0) {
 
219
   if (PaAlsa_GetStreamInputCard(Px->pa_stream, &card) == paNoError) {
221
220
      if (!open_mixer(&info->capture, card, FALSE)) {
222
221
         return cleanup(Px);
223
222
      }
224
223
   }
225
224
 
226
 
   card = PaAlsa_GetOutputCard(Px->pa_stream);
227
 
   if (card >= 0) {
 
225
   if (PaAlsa_GetStreamOutputCard(Px->pa_stream, &card) == paNoError) {
228
226
      if (!open_mixer(&info->playback, card, TRUE)) {
229
227
         return cleanup(Px);
230
228
      }