بازم سوال!!!
هرچی فکر می کنم یادم نمیاد کجاشو باید درست می کردم.... آهنگ وقتی به انتها میرسه و تمام میشه دیگه تکرار (loop) نمیشه!! کجاشو باید تغییر داد؟؟؟
ممنون از زحمات شما
Printable View
بازم سوال!!!
هرچی فکر می کنم یادم نمیاد کجاشو باید درست می کردم.... آهنگ وقتی به انتها میرسه و تمام میشه دیگه تکرار (loop) نمیشه!! کجاشو باید تغییر داد؟؟؟
ممنون از زحمات شما
***************نقل قول:
طبق مستندات خود uFMOD موسیقی به طور پیشفرض بعد از پایان دوباره تکرار میشه// مگر اینکه خلاف این رو ذکر کنید// (با اضافه کردن XM_NOLOOP به آرگومان سوم uFMOD_PlaySong)...////
**************************
*********************کد:' ---
' Parameters:
' ---
' lpXM
' Specifies the song to play. If this parameter is 0, any
' currently playing song is stopped. In such a case, function
' does not return a meaningful value. fdwSong parameter
' determines whether this value is interpreted as a filename,
' as a resource identifier or a pointer to an image of the song
' in memory.
' param
' If XM_RESOURCE is specified, this parameter should be the
' handle to the executable file that contains the resource to
' be loaded. A 0 value refers to the executable module itself.
' If XM_MEMORY is specified, this parameter should be the size
' of the image of the song in memory.
' If XM_FILE is specified, this parameter is ignored.
' fdwSong
' Flags for playing the song. The following values are defined:
' XM_FILE lpXM points to filename. param is ignored.
' XM_MEMORY lpXM points to an image of a song in memory.
' param is the image size. Once, uFMOD_PlaySong
' returns, it's safe to free/discard the memory
' buffer.
' XM_RESOURCE lpXM specifies the name of the resource.
' param identifies the module whose executable file
' contains the resource.
' The resource type must be RT_RCDATA.
' XM_NOLOOP An XM track plays repeatedly by default. Specify
' this flag to play it only once.
' XM_SUSPENDED The XM track is loaded in a suspended state,
' and will not play until the uFMOD_Resume function
' is called. This is useful for preloading a song
' or testing an XM track for validity.
موفق باشید!
سلام مجدد
من روی این پروژه ایی که شما توضیحات uFMOD رو گذاشته بودید موفق نشدم که xm رو روش بزارم. اما در یه پروژه دیگه چرا. حالا پروژه خامی که uFMOD رو توش بکار بردم رو براتون آپلود کردم، بی زحمت یه نگاه میندازید که کجاش باید درست بشه؟ ممنون از زحمات شما:)
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
*******************نقل قول:
خب این که یه کتابخونه ی دیگه هست.../// باید عدد 4 رو به آرگومان آخر اضافه کنید...///
**************************
******************کد:// Music flags
#define BASS_MUSIC_RAMP 1 // normal ramping
#define BASS_MUSIC_RAMPS 2 // sensitive ramping
#define BASS_MUSIC_LOOP 4 // loop music
#define BASS_MUSIC_FT2MOD 16 // play .MOD as FastTracker 2 does
#define BASS_MUSIC_PT1MOD 32 // play .MOD as ProTracker 1 does
#define BASS_MUSIC_POSRESET 256 // stop all notes when moving position
#define BASS_MUSIC_SURROUND 512 // surround sound
#define BASS_MUSIC_SURROUND2 1024 // surround sound (mode 2)
#define BASS_MUSIC_STOPBACK 2048 // stop the music on a backwards jump effect
#define BASS_MUSIC_CALCLEN 8192 // calculate playback length
#define BASS_MUSIC_NONINTER 16384 // non-interpolated mixing
#define BASS_MUSIC_NOSAMPLE 0x400000 // don't load the samples
کدتون به شکل زیر میشه...///
**************************
*************کد:BASSMOD_MusicLoad 0, TempPfad & "music2.XM", 0, 0, 2 Or 4 Or 512
موفق باشید!
ممنونم دوست عزیز این مشکل هم حل شد به یاری شما:»:»:»