Page 1 of 1
Posted: Wed Feb 13, 2002 10:57 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
Hi Fred!
Could you tell us the structures you are using inside PureBasic for Sound() and DirectX handling? Maybe it would be possible to write a own DecodeSound() command i.e. without saving the stuff to hd? "DecodeSound(?label,#num)" - What do you think, possible?
PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...
greetz
MrVainSCL! aka Thorsten
Posted: Wed Feb 13, 2002 11:01 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.
Which Sound format do you want to decode
to which new format ??
MP3 (copyright!) to WAV ??
Please explain...
Thanks,
...Danilo
(registered PureBasic user)
Posted: Thu Feb 14, 2002 12:01 am
by BackupUser
Restored from previous forum. Originally posted by Pupil.
Which Sound format do you want to decode
to which new format ??
I believe he want to be able to include the sound file in his EXE and initialize the sound from there without having to first save the file to the harddrive and then use LoadSound() to be able to use it. I.e. he's probably looking for something like this:
Code: Select all
...
DecodeSound(#sound1,?includesound1)
PlaySound(#sound1,0)
...
includesound1:
IncludeBinary "sound\1.wav"
Please tell me if i'm completely off track here MrVainSCL!
Posted: Thu Feb 14, 2002 12:12 am
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
Danilo wrote:
MP3 (copyright!) to WAV ??
Please explain...
Hi Danilo!
hehe... surely interested too - btw what is copyright, hehe?

))
Pupil wrote:
I believe he want to be able to include the sound file in his EXE and initialize the sound from there without having to first save the file to the harddrive and then use LoadSound() to be able to use it. I.e. he's probably looking for....
Hi Pupil!
Yes, you are absolutly right... That is what i mean! *BINGO*
PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...
greetz
MrVainSCL! aka Thorsten
Posted: Thu Feb 14, 2002 12:27 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.
Ahhhh... right, now i remember
It has nothing to do with decoding a sound,
its simply _loading_ a sound (in this case from memory).
So it should be added to LoadSound, like LoadImage
and LoadSprite.
Simply with LoadSound(#SoundNr, ?Label) for mem
and LoadSound(#SoundNr, "FileName") for disk.
Please stop telling me you want to decode something...
cya,
...Danilo
(registered PureBasic user)
Posted: Thu Feb 14, 2002 12:35 am
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
Danilo wrote:
Ahhhh... right, now i remember
Simply with LoadSound(#SoundNr, ?Label) for mem
and LoadSound(#SoundNr, "FileName") for disk.
Please stop telling me you want to decode something...
hehe... I still wait for something like "LoadSound(#num,?label)" or D*code() - Hey danilo, i want to decode graphics (arrrrhhh) *looool*
PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...
greetz
MrVainSCL! aka Thorsten