Changeset 513
- Timestamp:
- 08/05/07 04:39:58 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libfreebob-1.0/configure.ac
r468 r513 24 24 m4_define(freebob_major_version, 1) 25 25 m4_define(freebob_minor_version, 0) 26 m4_define(freebob_micro_version, 3)26 m4_define(freebob_micro_version, 4) 27 27 28 28 m4_define(freebob_version, freebob_major_version.freebob_minor_version.freebob_micro_version) branches/libfreebob-1.0/src/libfreebobstreaming/freebob_connections.c
r328 r513 197 197 198 198 err=0; 199 int midi_channel=0; 199 200 for (s=0;s<connection->nb_streams;s++) { 200 201 err=freebob_streaming_init_stream(dev,&connection->streams[s],connection->spec.stream_info->streams[s]); branches/libfreebob-1.0/src/libfreebobstreaming/freebob_streaming.c
r431 r513 226 226 dev->connections=calloc(dev->nb_connections_playback+dev->nb_connections_capture, sizeof(freebob_connection_t)); 227 227 228 229 228 for (c=0;c<dev->nb_connections_capture;c++) { 230 229 memcpy(&dev->connections[c].spec, libfreebob_capture_connections->connections[c], sizeof(freebob_connection_spec_t)); … … 236 235 } 237 236 237 // In order to correct for bogus midi channel numbers 238 // we redefine the location parameter to the order the 239 // channels appear in the specification 240 int midichannel=0; 241 for (c=0;c<dev->nb_connections_capture;c++) { 242 midichannel=0; 243 int s; 244 freebob_connection_t *connection= &(dev->connections[c]); 245 for (s=0;s<connection->spec.stream_info->nb_streams;s++) { 246 if(connection->spec.stream_info->streams[s]->format == IEC61883_STREAM_TYPE_MIDI) { 247 connection->spec.stream_info->streams[s]->location=midichannel++; 248 } 249 } 250 } 251 for (c=0;c<dev->nb_connections_playback;c++) { 252 midichannel=0; 253 int s; 254 freebob_connection_t *connection= &(dev->connections[c+dev->nb_connections_capture]); 255 for (s=0;s<connection->spec.stream_info->nb_streams;s++) { 256 if(connection->spec.stream_info->streams[s]->format == IEC61883_STREAM_TYPE_MIDI) { 257 connection->spec.stream_info->streams[s]->location=midichannel++; 258 } 259 } 260 } 261 238 262 /* Figure out a master connection. 239 263 * Either it is given in the spec libfreebob