/* 音楽再生のサンプル Satofumi KAMIMURA $Id$ */ #include "playListManager.h" #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { if (argc < 2) { printf("usage:\n\t%s <mp3 files...>\n", argv[0]); exit(1); } // 読み込み PlayListManager* playList = PlayListManager::getObject(); for (int i = 1; i < argc; ++i) { bool ret = playList->load(i, argv[i]); if (ret == false) { printf("warnning: %s, %s\n", playList->what(), argv[i]); } } // 順番に再生 for (int i = 1; i < argc; ++i) { bool ret = playList->play(i, true, 1000, 1000); printf("play: %d", i); if (ret == false) { printf("warnning: %s, id:%d", playList->what(), i); } getchar(); } return 0; }