PB2.90 for Windows - Sound() + DX() Structures ?

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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? :wink:))
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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
Post Reply