#include #include #include "audiere.h" using namespace audiere; using namespace std; OutputStreamPtr changeSong(AudioDevicePtr device) { char musicfilename[100]; // prompt for new song to play cout<<"Enter new file path"<setVolume(volume); cout << "Playing song..." << endl; sound->play(); sound->setRepeat(true); input=getch(); if(input=='i') volume=volume+0.1; if(input=='d') volume=volume-0.1; if(input=='m') volume=0.0; if(input=='r') sound->reset(); if (volume > 1.0) volume=1.0; if (volume < 0.0) volume=0.0; if(input == 'h') { cout<<"To increase volume press 'i'"<stop(); sound = changeSong(device); float volume = 0.1f; } } return 0; }