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

« back to all changes in this revision

Viewing changes to lib-src/portmixer/src/px_mixer.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:
68
68
int OpenMixer_Linux_ALSA(px_mixer *Px, int index);
69
69
#endif
70
70
 
 
71
#include <stdio.h>
 
72
#include <stdlib.h>
71
73
#if defined(_DEBUG)
72
74
#include <stdio.h>
73
75
#include <stdlib.h>
184
186
/*
185
187
|| Mixer info
186
188
*/
187
 
int Px_GetNumMixers( void *pa_stream )
 
189
int Px_GetNumMixers(PxMixer *mixer)
188
190
{
189
 
   px_mixer *Px = verify_mixer(Px_OpenMixer(pa_stream, 0));
 
191
   px_mixer *Px = verify_mixer(mixer);
190
192
   int cnt;
191
193
 
192
194
   if (!Px) {
195
197
 
196
198
   cnt = Px->GetNumMixers(Px);
197
199
 
198
 
   Px_CloseMixer((PxMixer *)Px);
199
 
 
200
200
   return cnt;
201
201
}
202
202
 
203
 
const char *Px_GetMixerName( void *pa_stream, int i )
 
203
const char *Px_GetMixerName(PxMixer *mixer, int i)
204
204
{
205
 
   px_mixer *Px = verify_mixer(Px_OpenMixer(pa_stream, 0));
 
205
   px_mixer *Px = verify_mixer(mixer);
206
206
   const char *name;
207
207
 
208
208
   if (!Px) {
211
211
 
212
212
   name = Px->GetMixerName(Px, i);
213
213
 
214
 
   Px_CloseMixer((PxMixer *)Px);
215
 
 
216
214
   return name;
217
215
}
218
216
 
229
227
   return Px->GetMasterVolume(Px);
230
228
}
231
229
 
232
 
void Px_SetMasterVolume( PxMixer *mixer, PxVolume volume )
 
230
void Px_SetMasterVolume(PxMixer *mixer, PxVolume volume)
233
231
{
234
232
   px_mixer *Px = verify_mixer(mixer);
235
233
   if (!Px)