~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to src/pulsecore/source-output.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071204005608-y1xqvcu45g1yxtlu
Tags: 0.9.8-1ubuntu1
"Hail our new PulseAudio overlords (part two)."

* Merge from Debian unstable.
* Ubuntu-specific changes:
  - debian/control:
    + Don't build-depend on libjack0.100.0-dev or build jack module
      packages,
    + Update pulseaudio's Recommends and Suggests to accomodate
      existing promoted main packages,
    + Explicitly mention pasuspender in pulseaudio-utils's long
      description,
    + Add Vcs-Bzr URI,
    + Adhere to DebianMaintainerField;
  - debian/rules: Use multiuser for update-rc.d;
  - debian/patches/series: Retain the exclusion of
    0001-Set-ESD-socket-to-tmp-.esd-socket-to-match-up-with.patch.
* Dropped Ubuntu-specific change (absorbed into Debian source):
  debian/patches/0002-Double-esound-maximum-sample-size.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef foopulsesourceoutputhfoo
2
2
#define foopulsesourceoutputhfoo
3
3
 
4
 
/* $Id: source-output.h 1971 2007-10-28 19:13:50Z lennart $ */
 
4
/* $Id: source-output.h 2067 2007-11-21 01:30:40Z lennart $ */
5
5
 
6
6
/***
7
7
  This file is part of PulseAudio.
49
49
typedef enum pa_source_output_flags {
50
50
    PA_SOURCE_OUTPUT_VARIABLE_RATE = 1,
51
51
    PA_SOURCE_OUTPUT_DONT_MOVE = 2,
52
 
    PA_SOURCE_OUTPUT_START_CORKED = 4
 
52
    PA_SOURCE_OUTPUT_START_CORKED = 4,
 
53
    PA_SOURCE_OUTPUT_NO_REMAP = 8,
 
54
    PA_SOURCE_OUTPUT_NO_REMIX = 16,
 
55
    PA_SOURCE_OUTPUT_FIX_FORMAT = 32,
 
56
    PA_SOURCE_OUTPUT_FIX_RATE = 64,
 
57
    PA_SOURCE_OUTPUT_FIX_CHANNELS = 128
53
58
} pa_source_output_flags_t;
54
59
 
55
60
struct pa_source_output {
82
87
    void (*detach) (pa_source_output *o);           /* may be NULL */
83
88
 
84
89
    /* If non-NULL called whenever the the source this output is attached
 
90
     * to changes. Called from main context */
 
91
    void (*moved) (pa_source_output *o);   /* may be NULL */
 
92
 
 
93
    /* If non-NULL called whenever the the source this output is attached
85
94
     * to suspends or resumes. Called from main context */
86
 
    void (*suspend) (pa_source_output *o, int b);   /* may be NULL */
 
95
    void (*suspend) (pa_source_output *o, pa_bool_t b);   /* may be NULL */
87
96
 
88
97
    /* Supposed to unlink and destroy this stream. Called from main
89
98
     * context. */
135
144
    pa_resample_method_t resample_method;
136
145
} pa_source_output_new_data;
137
146
 
 
147
typedef struct pa_source_output_move_hook_data {
 
148
    pa_source_output *source_output;
 
149
    pa_source *destination;
 
150
} pa_source_output_move_hook_data;
 
151
 
138
152
pa_source_output_new_data* pa_source_output_new_data_init(pa_source_output_new_data *data);
139
153
void pa_source_output_new_data_set_sample_spec(pa_source_output_new_data *data, const pa_sample_spec *spec);
140
154
void pa_source_output_new_data_set_channel_map(pa_source_output_new_data *data, const pa_channel_map *map);