예제 #1
0
int tizdirble::play_country (const std::string &country_code)
{
  int rc = 0;
  try_catch_wrapper (
      py_dirble_proxy_.attr ("enqueue_country") (bp::object (country_code)));
  return rc;
}
예제 #2
0
int tizdirble::start ()
{
  int rc = 0;
  try_catch_wrapper (
      start_dirble (py_global_, py_dirble_proxy_, api_key_));
  return rc;
}
예제 #3
0
int tizgmusic::start ()
{
  int rc = 0;
  try_catch_wrapper (
      start_gmusic (py_global_, py_gm_proxy_, user_, pass_, device_id_));
  return rc;
}
예제 #4
0
int tizdirble::play_stations (const std::string &query)
{
  int rc = 0;
  try_catch_wrapper (
      py_dirble_proxy_.attr ("enqueue_stations") (bp::object (query)));
  return rc;
}
예제 #5
0
void tizsoundcloud::set_playback_mode (const playback_mode mode)
{
  int rc = 0;
  switch(mode)
    {
    case PlaybackModeNormal:
      {
        try_catch_wrapper (py_gm_proxy_.attr ("set_play_mode")("NORMAL"));
      }
      break;
    case PlaybackModeShuffle:
      {
        try_catch_wrapper (py_gm_proxy_.attr ("set_play_mode")("SHUFFLE"));
      }
      break;
    default:
      {
        assert (0);
      }
      break;
    };
  (void)rc;
}
예제 #6
0
int tizsoundcloud::play_creator (const std::string &creator)
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("enqueue_creator")(bp::object (creator)));
  return rc;
}
예제 #7
0
int tizsoundcloud::play_user_playlist (const std::string &playlist)
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("enqueue_user_playlist")(bp::object (playlist)));
  return rc;
}
예제 #8
0
int tizsoundcloud::play_user_likes ()
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("enqueue_user_likes")());
  return rc;
}
예제 #9
0
int tizdirble::init ()
{
  int rc = 0;
  try_catch_wrapper (init_dirble (py_main_, py_global_));
  return rc;
}
예제 #10
0
void tizdirble::clear_queue ()
{
  int rc = 0;
  try_catch_wrapper (py_dirble_proxy_.attr ("clear_queue")());
  (void)rc;
}
예제 #11
0
int tizgmusic::init ()
{
  int rc = 0;
  try_catch_wrapper (init_gmusic (py_main_, py_global_));
  return rc;
}
예제 #12
0
int tizgmusic::enqueue_playlist (const std::string &playlist)
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("enqueue_playlist")(bp::object (playlist)));
  return rc;
}
예제 #13
0
int tizgmusic::enqueue_album (const std::string &album)
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("enqueue_album")(bp::object (album)));
  return rc;
}
예제 #14
0
void tizgmusic::stop ()
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("logout")());
  (void)rc;
}
예제 #15
0
int tizsoundcloud::play_tags (const std::string &tags)
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("enqueue_tags")(bp::object (tags)));
  return rc;
}
예제 #16
0
void tizsoundcloud::clear_queue ()
{
  int rc = 0;
  try_catch_wrapper (py_gm_proxy_.attr ("clear_queue")());
  (void)rc;
}
tizchromecastctx::tizchromecastctx ()
{
  try_catch_wrapper (init_cc_ctx (py_main_, py_global_, py_chromecastproxy_));
}
예제 #18
0
int tizsoundcloud::init ()
{
  int rc = 0;
  try_catch_wrapper (init_soundcloud (py_main_, py_global_));
  return rc;
}
예제 #19
0
int tizdirble::play_popular_stations ()
{
  int rc = 0;
  try_catch_wrapper (py_dirble_proxy_.attr ("enqueue_popular_stations")());
  return rc;
}