/* ========================================================================== */ /* */ /* main.cpp */ /* wildinc (c) 2006 Author */ /* */ /* Description */ /* simple media cente */ /* ========================================================================== */ #include #include #include "audiere.h" using namespace audiere; using namespace std; int main(int argc, char *argv[],int d = 1) { cout<<"Wildinc's music player"<setVolume(volume); sound->play(); sound->setRepeat(true); if(getch()=='i') volume=volume+0.1; if(getch()=='d') volume=volume-0.1; if(getch()=='m') volume=0.0; if(getch()=='r') sound->reset(); if (volume > 1.0) volume=1.0; if (volume < 0.0) volume=0.0; if(getch()=='o') { sound->stop(); cout<<"Enter the new song path"<setVolume(volume); sound->play(); sound->setRepeat(true); if(getch()=='i') volume=volume+0.1; if(getch()=='d') volume=volume-0.1; if(getch()=='m') volume=0.0; if(getch()=='r') sound->reset(); if (volume > 1.0) volume=1.0; if (volume < 0.0) volume=0.0; } } } return 0; }