flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
typedef
Hie all. I was wondering if there is a way i can embed an mp3 file into my FASM program's resource section. Or is there and ID for such files..like RT_WAV etc ?
thanks |
|||
![]() |
|
pearlz
it's can be RT_RCDATA for use it, you can FindResource then LoadResource ..etc..
|
|||
![]() |
|
typedef
@LocoDel...how do i load it afterwards... i dont know its ID but name
|
|||
![]() |
|
LocoDelAssembly
It is loaded already, doing "mov eax, [the_mp3_file]" will make EAX == <"ID3", 3> (or whatever the file signature is). Think of it as a byte array already pre-initialized with the file contents.
[edit]BTW, perhaps you'll need to know the size so use this instead: Code: ; Part of your code where you hold data the_mp3_file: file 'TheFile.mp3' sizeof.the_mp3_file = $ - the_mp3_file ; Now you can know the size of this "byte array" with "sizeof.the_mp3_file" |
|||
![]() |
|
typedef
ok thanks
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.