Changeset 301

Show
Ignore:
Timestamp:
09/11/06 00:35:58 (16 years ago)
Author:
jwoithe
Message:

Port::useExternalBuffer(): don't complain if called after initialisation and the call does not request a change to the external buffer usage.
freebob_driver_attach(): call freebob_streaming_set_capture_stream_buffer() so freebob knows an external buffer will be used.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libfreebob-2.0/src/libstreaming/Port.cpp

    r235 r301  
    260260 
    261261bool Port::useExternalBuffer(bool b) { 
     262 
     263        // If called on an initialised stream but the request isn't for a change silently 
     264        // allow it (relied on by C API as used by jack backend driver) 
     265        if (m_initialized && m_use_external_buffer==b) 
     266                return true; 
    262267         
    263268        debugOutput( DEBUG_LEVEL_VERBOSE, "Setting external buffer use to %d for port %s\n",(int)b,m_Name.c_str()); 
  • branches/libfreebob-2.0/support/jack/freebob_driver.c

    r249 r301  
    136136                                printError(" cannot set port buffer type for %s", buf); 
    137137                        } 
     138                        if (freebob_streaming_set_capture_stream_buffer(driver->dev, chn, NULL)) { 
     139                                printError(" cannot configure initial port buffer for %s", buf); 
     140                        } 
    138141                        if(freebob_streaming_capture_stream_onoff(driver->dev, chn, 1)) { 
    139142                                printError(" cannot enable port %s", buf); 
     
    172175                        if(freebob_streaming_set_playback_buffer_type(driver->dev, chn, freebob_buffer_type_float)) { 
    173176                                printError(" cannot set port buffer type for %s", buf); 
     177                        } 
     178                        if (freebob_streaming_set_playback_stream_buffer(driver->dev, chn, NULL)) { 
     179                                printError(" cannot configure initial port buffer for %s", buf); 
    174180                        } 
    175181                        if(freebob_streaming_playback_stream_onoff(driver->dev, chn, 1)) {