0

I'm trying to say this:

string songLocation = "data/sounds/blabla.wav";

PlaySound(songLocation,NULL,SND_FILENAME|SND_ASYNC);

but here is the error I get:

cannot convert `std::string' to `const CHAR*' for argument `1' to `BOOL PlaySoundA(const CHAR*, void*, DWORD)'

Does anyone have any ideas? (btw, songLocation cannot be changed from a string. If that happens to be the case, it will have to be converted)

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by geojia
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.