comparison src/flac112/plugin.c @ 372:a157306caf03 trunk

[svn] - finalize the plugin-side of the extension-assist ABI
author nenolod
date Tue, 12 Dec 2006 19:43:23 -0800
parents c812e846b84e
children ce4efa148521
comparison
equal deleted inserted replaced
371:96cbec520f57 372:a157306caf03
130 static void error_callback_(const void *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data); 130 static void error_callback_(const void *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data);
131 131
132 static void init_decoder_func_tables(); 132 static void init_decoder_func_tables();
133 static decoder_t source_to_decoder_type (const char *source); 133 static decoder_t source_to_decoder_type (const char *source);
134 134
135 gchar *flac_fmts[] = { "flac", NULL };
136
135 InputPlugin flac_ip = 137 InputPlugin flac_ip =
136 { 138 {
137 NULL, 139 NULL,
138 NULL, 140 NULL,
139 NULL, 141 NULL,
156 NULL, 158 NULL,
157 NULL, 159 NULL,
158 FLAC_XMMS__get_song_info, 160 FLAC_XMMS__get_song_info,
159 FLAC_XMMS__file_info_box, 161 FLAC_XMMS__file_info_box,
160 NULL, 162 NULL,
161 flac_get_tuple 163 flac_get_tuple,
164 NULL, // set tuple
162 NULL, 165 NULL,
163 NULL, 166 NULL,
164 { "flac", NULL }, 167 flac_fmts,
165 }; 168 };
166 169
167 #define SAMPLES_PER_WRITE 512 170 #define SAMPLES_PER_WRITE 512
168 #define SAMPLE_BUFFER_SIZE ((FLAC__MAX_BLOCK_SIZE + SAMPLES_PER_WRITE) * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS * (24/8)) 171 #define SAMPLE_BUFFER_SIZE ((FLAC__MAX_BLOCK_SIZE + SAMPLES_PER_WRITE) * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS * (24/8))
169 static FLAC__byte sample_buffer_[SAMPLE_BUFFER_SIZE]; 172 static FLAC__byte sample_buffer_[SAMPLE_BUFFER_SIZE];