재생 가능한 소스 드리외다 쩝...
나머지는 알아서 하셈 ㅋ
#include <stdlib.h>
#include <fmod.h>
#include <fmod_errors.h>
#include <iostream>
#ifdef WIN32
#include <windows.h>
#pragma comment(lib,\"fmod.lib\")
#else
#include <wincompat.h>
#endif
FSOUND_STREAM* g_mp3_stream = NULL;
int main(int argc,char **argv)
{
if( FSOUND_Init(44000,64,0) == FALSE )
{
std::cerr << \"[ERROR] Could not initialise fmod\\n\";
return 0;
}
g_mp3_stream = FSOUND_Stream_Open( \"Hawaii5O.mp3\" , FSOUND_2D , 0 , 0 );
if(!g_mp3_stream) {
std::cerr << \"[ERROR] could not open file\\n\";
return 0;
}
FSOUND_Stream_Play(0,g_mp3_stream);
std::cout << \"press any key to quit\" << std::endl;
fgetc(stdin);
FSOUND_Stream_Stop( g_mp3_stream );
FSOUND_Stream_Close( g_mp3_stream );
FSOUND_Close();
return 0;
}
나머지는 알아서 하셈 ㅋ
#include <stdlib.h>
#include <fmod.h>
#include <fmod_errors.h>
#include <iostream>
#ifdef WIN32
#include <windows.h>
#pragma comment(lib,\"fmod.lib\")
#else
#include <wincompat.h>
#endif
FSOUND_STREAM* g_mp3_stream = NULL;
int main(int argc,char **argv)
{
if( FSOUND_Init(44000,64,0) == FALSE )
{
std::cerr << \"[ERROR] Could not initialise fmod\\n\";
return 0;
}
g_mp3_stream = FSOUND_Stream_Open( \"Hawaii5O.mp3\" , FSOUND_2D , 0 , 0 );
if(!g_mp3_stream) {
std::cerr << \"[ERROR] could not open file\\n\";
return 0;
}
FSOUND_Stream_Play(0,g_mp3_stream);
std::cout << \"press any key to quit\" << std::endl;
fgetc(stdin);
FSOUND_Stream_Stop( g_mp3_stream );
FSOUND_Stream_Close( g_mp3_stream );
FSOUND_Close();
return 0;
}
fmod즐
어쩌라고
겅부하시는거 아니센? directshow쪽도 파보심 좋을듯.