#closerequest
BOOL PlayMusic_( LPCTSTR lpszFileName, int nLoopCount )
{
if( !g_Dig )
return FALSE;
if( g_bEnableMusic == FALSE ) // »ç¿îµå Ä«µå°¡ ¾ø°Å³ª ²°À»¶§
return FALSE;
if( _tcscmp( lpszFileName, g_filename ) == 0 && IsPlayingMusic() )
return FALSE;
// ¾ÆÁ÷ À½¾ÇÀÌ ¿¬ÁÖÁßÀ̶ó¸é, º¼·ýÀ» ¼*¼*È÷ ³·ÃçÁÙ ¼¼ÆÃÀ» ÇÑ´Ù.
// if( IsPlayingMusic() )
// {
// _tcscpy( g_szFileName, lpszFileName );
// g_bFadeOutMusic = TRUE;
// g_fCurrVolume = g_fMusicVolume;
//
// return TRUE;
// }
// Á¦°Å !
if( g_Stream )
AIL_close_stream( g_Stream );
strcpy( g_filename, lpszFileName );
// »õ·Î¿î ½ºÆ®¸²À¸·Î!
g_Stream = AIL_open_stream( g_Dig, g_filename, 0 );
if( !g_Stream )
{
Error( "oh my god... AIL_open_stream error" );
return FALSE;
}
if( nLoopCount < 0 )
nLoopCount = 0;
AIL_set_stream_loop_count( g_Stream, nLoopCount );
AIL_start_stream( g_Stream );
AIL_service_stream( g_Stream, 0 );
// º¼·ýÀº ¿ø·¡´ë·Î
SetVolume( g_fMusicVolume );
return TRUE;
}
g_Stream = AIL_open_stream( g_Dig, g_filename, 0 );
if( !g_Stream )
{
Error( "oh my god... AIL_open_stream error File: %s", g_filename );
return FALSE;
}
Wieso schreibt ihr nicht auf Deutsch?Quote:
This is my FunktionCode:BOOL PlayMusic_( LPCTSTR lpszFileName, int nLoopCount ) { if( !g_Dig ) return FALSE; if( g_bEnableMusic == FALSE ) // »ç¿îµå Ä«µå°¡ ¾ø°Å³ª ²°À»¶§ return FALSE; if( _tcscmp( lpszFileName, g_filename ) == 0 && IsPlayingMusic() ) return FALSE; // ¾ÆÁ÷ À½¾ÇÀÌ ¿¬ÁÖÁßÀ̶ó¸é, º¼·ýÀ» ¼*¼*È÷ ³·ÃçÁÙ ¼¼ÆÃÀ» ÇÑ´Ù. // if( IsPlayingMusic() ) // { // _tcscpy( g_szFileName, lpszFileName ); // g_bFadeOutMusic = TRUE; // g_fCurrVolume = g_fMusicVolume; // // return TRUE; // } // Á¦°Å ! if( g_Stream ) AIL_close_stream( g_Stream ); strcpy( g_filename, lpszFileName ); // »õ·Î¿î ½ºÆ®¸²À¸·Î! g_Stream = AIL_open_stream( g_Dig, g_filename, 0 ); if( !g_Stream ) { Error( "oh my god... AIL_open_stream error" ); return FALSE; } if( nLoopCount < 0 ) nLoopCount = 0; AIL_set_stream_loop_count( g_Stream, nLoopCount ); AIL_start_stream( g_Stream ); AIL_service_stream( g_Stream, 0 ); // º¼·ýÀº ¿ø·¡´ë·Î SetVolume( g_fMusicVolume ); return TRUE; }
wenn die datei drin ist, überpüfe mal deine "default.bgm" im music ordner. die datei einfach mal mit dem editor öffen und schauen ob alle pfade stimmen und was mit deiner buggy music ist.Quote:
Bumb
Probleme besteht immernoch, die Music Datei ist drinne aber er sagt mir trozdem das sie fehlt.
Haben auch das selbe Problem mit unseren V15 Files. Haben auch schon vieles probiert und es hat nichts gebracht.Quote:
Bumb
Immernoch das probleme das die datei drinne ist aber neuz sich shutdownt, Debugen geht nicht.