Programming Arduino Uno to play specific WAV based off input voltages

When I verify your code, it gives me:

sketch_apr23b.ino: In function 'void loop()':
sketch_apr23b:26: error: 'play' was not declared in this scope

to have the program verify through without errors the minimum code is:

#include "WaveUtil.h"
#include "WaveHC.h"
WaveHC wave;      // This is the only wave (audio) object, since we will only play one at a time

void setup() {
}

void loop() 
{ // Down here, where it belongs
    playfile("Pink_Try.WAV");
}

void playfile(char *name) {
  // see if the wave object is currently doing something
  if (wave.isplaying) {// already playing something, so stop it!
    wave.stop(); // stop it
  }
}

No sound plays but I know that the shield works, since when I use the daphc example code it plays all the wav files in a loop without issue. Again thank you for your time.