I am trying to play some audio from within a program using MCIWndPlay(m_Audio);
or MCIWndPlayTo(m_Audio, duration);
type calls.
The program is getting the path of the media from an RSS feed and the audio can be either an MP3 file or a streaming MP3 (either progressive download or actual streaming MP3). This code plays straight MP3 files fine, and it plays progressive download MP3s from a .m3u fine, but it doesn't seem to agree with streaming audio.
When I give it a stream (.asx) it doesn't do anything. MCIWndPlay(m_Audio);
is returning a zero, so I guess it thinks it's doing it right, but it's not actually playing the audio.
Also, for MCIWndPlayTo(m_Audio, duration);
, It doesn't seem to like any duration I put in for it, it tells me that it's out of range. I have another topic going asking about how to put in a duration that is greater than the length, but I'd like to be able to play some duration, X, or the entire stream, whichever is shorter.
ETA:
FWIW, it's not like the PC itself has a problem playing the .asx streams. If I plug the path into a browser it pops up with WMP and starts playing.