on windows we have to use ov_open_callbacks instead of ov_open .. passing clients callbacks for fread, fclose ..
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1240 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0f54de64aa
commit
d2e7b6e59c
@ -69,7 +69,11 @@ bool MusicOggStream::load(const char* filename)
|
||||
}
|
||||
oggFile = fopen(m_fileName.c_str(), "rb");
|
||||
|
||||
#if defined( WIN32 ) || defined( WIN64 )
|
||||
if( ov_open_callbacks((void *)oggFile, &m_oggStream, NULL, 0, OV_CALLBACKS_DEFAULT) < 0)
|
||||
#else
|
||||
if (ov_open(oggFile, &m_oggStream, NULL, 0) < 0)
|
||||
#endif
|
||||
{
|
||||
fclose(oggFile);
|
||||
printf("Loading Music: %s failed\n", m_fileName.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user