Show
Ignore:
Timestamp:
07/01/11 21:09:04 (23 months ago)
Author:
wolke
Message:

add first step of jack session implementation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/undo/src/gui/src/main.cpp

    r2226 r2236  
    3535#include <hydrogen/LashClient.h> 
    3636#endif 
     37#ifdef H2CORE_HAVE_JACKSESSION 
     38#include <jack/session.h> 
     39#endif 
    3740 
    3841#include <hydrogen/midiMap.h> 
     
    5861        {"driver", required_argument, NULL, 'd'}, 
    5962        {"song", required_argument, NULL, 's'}, 
     63#ifdef H2CORE_HAVE_JACKSESSION 
     64        {"session-id", required_argument, NULL, 'S'}, 
     65#endif 
    6066        {"playlist", required_argument, NULL, 'p'}, 
    6167        {"version", 0, NULL, 'v'}, 
     
    166172                // Deal with the options 
    167173                QString songFilename; 
     174#ifdef H2CORE_HAVE_JACKSESSION 
     175                QString sessionId; 
     176#endif 
    168177                QString playlistFilename; 
    169178                bool bNoSplash = false; 
     
    189198                                        songFilename = QString::fromLocal8Bit(optarg); 
    190199                                        break; 
     200#ifdef H2CORE_HAVE_JACKSESSION 
     201                                case 'S': 
     202                                        sessionId = QString::fromLocal8Bit(optarg); 
     203                                        break; 
     204#endif 
    191205 
    192206                                case 'p': 
     
    452466        std::cout << "   -d, --driver AUDIODRIVER - Use the selected audio driver (jack, alsa, oss)" << std::endl; 
    453467        std::cout << "   -s, --song FILE - Load a song (*.h2song) at startup" << std::endl; 
     468 
     469#ifdef H2CORE_HAVE_JACKSESSION 
     470        std::cout << "   -S, --session-id ID - Start a JackSessionHandler session" << std::endl; 
     471#endif 
     472 
    454473        std::cout << "   -p, --playlist FILE - Load a playlist (*.h2playlist) at startup" << std::endl;  
    455474        std::cout << "   -k, --kit drumkit_name - Load a drumkit at startup" << std::endl;