~ubuntu-branches/ubuntu/precise/libfreebob/precise

« back to all changes in this revision

Viewing changes to src/freebob.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Marcio Roberto Teixeira
  • Date: 2007-04-26 22:45:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070426224516-369429d1s65cw2zl
Tags: 1.0.3+svn443-1
* Updating upstream source: 1.0.0 --> 1.0.3 (svn revision 443)
* Maintainer changed: me --> Debian Multimedia Team
* Add Debian Multimedia Team guys as Uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
DECLARE_GLOBAL_DEBUG_MODULE;
41
41
IMPL_GLOBAL_DEBUG_MODULE( FreeBoB, DEBUG_LEVEL_VERBOSE );
42
42
 
43
 
const char*
 
43
char*
44
44
freebob_get_version() {
45
45
    return PACKAGE_STRING;
46
46
}
47
47
 
48
 
const int
 
48
int
49
49
freebob_get_api_version() {
50
50
    return FREEBOB_API_VERSION;
51
51
}
142
142
    IAvDevice* avDevice = freebob_handle->m_deviceManager->getAvDevice( node_id );
143
143
    if ( avDevice ) {
144
144
        if ( avDevice->setSamplingFrequency( parseSampleRate( samplerate ) ) ) {
145
 
            return freebob_handle->m_deviceManager->discover(0)? 1 : 0;
146
 
        } else {
147
 
            return -1;
148
 
        }
 
145
            return freebob_handle->m_deviceManager->discover(0)? 0 : -1;
 
146
        }
149
147
    }
150
148
    return -1;
151
149
}