PureBasic

Forums PureBasic
Nous sommes le Mer 11/Déc/2019 15:22

Heures au format UTC + 1 heure




Poster un nouveau sujet Répondre au sujet  [ 21 messages ]  Aller à la page Précédente  1, 2
Auteur Message
 Sujet du message: Re: Tetirs
MessagePosté: Sam 25/Fév/2017 17:58 
Hors ligne
Avatar de l’utilisateur

Inscription: Jeu 29/Juil/2004 16:33
Messages: 2802
Localisation: Klyntar
Après si c'est juste des petits sons, tu peux les inclures en data







@++

_________________
Windows 10 x64, PureBasic 5.71 Beta 1 x86 & x64
GPU : radeon HD6370M, CPU : p6200 2.13Ghz


Haut
 Profil  
Répondre en citant le message  
 Sujet du message: Re: Tetirs
MessagePosté: Sam 25/Fév/2017 20:12 
Hors ligne

Inscription: Ven 29/Aoû/2014 19:52
Messages: 35
venom a écrit:
Après si c'est juste des petits sons, tu peux les inclures en data
@++


Petit exemple :)

Code:

InitSound()


CatchMusic(0,   ?music,    ?endmusic - ?music)
PlayMusic(0)   
MessageRequester("Music!", "...")


DataSection
  music:
  Data.q $6465646E65747845,$3A656C75646F4D20,$2073697274655420,$676E69202D206247,$61461A2020656D61
  Data.q $656B636172547473,$2030302E32762072,$0000011401042020,$0004000400000006,$0096000C00010010
  Data.q $0000030201000100,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$E600360000000009,$8780060F01439B01,$43060A988028052B
  Data.q $61998080210E2001,$3D83378161810C0F,$3B9B060F013E9B03,$6181802B81070A01,$8B013F8380806181
  Data.q $033D8337810A013C,$4183808061816181,$802B810A013E8B01,$4361818080618180,$3D833781000A3001
  Data.q $80000A3001418003,$3C8B013F83033D83,$816181802B810A01,$3B8B013E83808061,$81033D8337810A01
  Data.q $013C838080618161,$808030810A01378B,$0C0F619980806181,$3C9B033D833C8180,$8180308180060F01
  Data.q $8080000A20013C61,$833C816181013F83,$0A20013F6181033D,$6181014383808000,$2001436181803081
  Data.q $800C0F988080000A,$01419B033D833C81,$30810A013E8B060F,$8061816181033D83,$0A013C8B013F8380
  Data.q $816181033D833C81,$013B013E83808061,$6181802F81040A30,$808080000A30013B,$833B81000A300137
  Data.q $808080618180033D,$802F81000A30013B,$013F838080618180,$833B81000A30013C,$808061816181033D
  Data.q $000A30013E014183,$8061816181802B81,$9B3781800C0F9880,$0F01439B960E033D,$802B8130013F8706
  Data.q $0F98808061816181,$9B033D833781800C,$30013C87060F013F,$8061816181803081,$833C81800C0F9880
  Data.q $87060F013C9B033D,$6181803081300137,$800C0F9880806181,$013C9B033D833C81,$308130013787060F
  Data.q $9880806181618180,$3D83053C83800C0F,$033D833281808003,$09033D8333818080,$01E9003300000000
  Data.q $9B803581800C0F98,$0A400138060F0141,$033D832805298706,$0F98808061816181,$01449B806181800C
  Data.q $87000A40013C060F,$6181033D83280529,$3F01488380806181,$81806181000A4001,$013F808080618161
  Data.q $8328052987000A40,$000A40013F80033D,$3E014683033D8380,$81803081000A4001,$0144838080618161
  Data.q $832C81000A40013C,$618161816181033D,$0A40013A01438380,$6181802805278700,$800C0F9880806181
  Data.q $818080033D833381,$37060F013F9B8061,$28053387000A4001,$8061816181033D83,$0A40013A01438380
  Data.q $6181618180278100,$000A40013C808080,$013A80033D832E81,$0141838080000A40,$872E81000A400138
  Data.q $806181618140033D,$0A400137013F8380,$6181033D83618100,$3B013E8380806181,$80053783000A4001
  Data.q $0F98808061816181,$9B033D833E81800C,$0A40013B060F013E,$6181618180618100,$40013C013F838080
  Data.q $033D83053E83000A,$4183808061816181,$6181000A40013E01,$9880806181618180,$3D9B053783800C0F
  Data.q $060F01439B960E03,$806181000A40013F,$0F98808061816181,$033D83053B83800C,$40013C060F013F9B
  Data.q $816181803081000A,$81800C0F98808061,$0F013C9B033D8337,$3081000A40013706,$9880806181618180
  Data.q $033D833781800C0F,$400137060F013C9B,$816181803081000A,$81800C0F98808061,$80180F98033D8361
  Data.q $033D87DC0E033D9B,$0021000000000940,$870C0F01379B00FB,$8038053C87300133,$80033D8343818080
  Data.q $43818080803C8180,$3081013383033D83,$8180060F98803C81,$83808080033D8343,$3C81800C0F98033D
  Data.q $033D834381808080,$803B813281013583,$80033D8343818080,$43818080803B8180,$2F81013283033D83
  Data.q $8343818080803B81,$3D873B818080033D,$3D83438180804003,$3C81308101338303,$033D834381808080
  Data.q $818080803C818080,$81013083033D8343,$80060F988061812B,$80033D8338054387,$0C0F98033D838080
  Data.q $43818080803C8180,$8180012F83033D83,$3D8343818080803B,$8080806181808003,$80033D8338054387
  Data.q $080A98803B813281,$033D834381080A98,$180F61990A880A88,$0000099C0E033D9B,$379B00F700210000
  Data.q $87300133870C0F01,$438180808038053C,$803C818080033D83,$83033D8343818080,$98803C8130810133
  Data.q $033D83438180060F,$0F98033D83808080,$818080803C81800C,$81013583033D8343,$43818080803B8132
  Data.q $803B818080033D83,$83033D8343818080,$80803B812F810132,$8080033D83438180,$808040033D873B81
  Data.q $013383033D834381,$818080803C813081,$81013783033D8343,$43818080803C8133,$3781013C83033D83
  Data.q $8180060F98803C81,$83808080033D8343,$3C81800C0F98033D,$033D834381808080,$803B813581013B83
  Data.q $80033D8343818080,$43818080803B8180,$8161816181033D83,$033D838080808061,$0E033D9B80180F98
  Data.q $00010740033D87DC,$6576617254202000,$646E7953202F206E,$37000000656D6F72,$0000000000280001
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$00220010000B0040,$003C0000003C0000,$003C0000003C0000
  Data.q $0050000000460000,$00640000005A0000,$00000000006E0000,$001E0028000A0020,$003C002000320018
  Data.q $0050002000460020,$00640020005A0020,$00780020006E0020,$0603002000820020,$0003050302000000
  Data.q $000000801F020000,$0000000000000000,$0000000000000000,$0000004700000000,$0000004700000000
  Data.q $2020000C4001E440,$2020202020202020,$2020202020202020,$04FDFF0D20202020,$0200FD0400EDEEFF
  Data.q $00000100FF0200FE,$000001FF01010000,$0100FE0102FE0100,$FC09150AFD0101FF,$0000FE0102FD0100
  Data.q $01FE0001FF0000FF,$FF0000FF0200FE01,$0000000107FF0000,$0000000000000000,$0000000000000000
  Data.q $0001370000000000,$0000000000000028,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0040000000000000,$0000001F000A0001
  Data.q $0000003C0000003C,$0000003C0000003C,$0000005000000046,$000000640000005A,$002000000000006E
  Data.q $0018001E0028000A,$0020003C00200032,$0020005000200046,$002000640020005A,$002000780020006E
  Data.q $0100060300200082,$0000000305030202,$0000000000800000,$0000000000000000,$0000000000000000
  Data.q $00000000008C0000,$C0340000008C0000,$20202020000CD001,$2020202020202020,$2020202020202020
  Data.q $F7FF0100FDFE2020,$03FF0100FF030003,$0000010DFF00FF07,$FCFE14FE00FE05FE,$FFFDFEFDFE060200
  Data.q $F101FE00FBFAFEFE,$000101FFF0FF0000,$030104E9030201FC,$0405F2040103FE01,$0003020204FFFF01
  Data.q $F7FE0100020F0004,$0102010200010201,$01FF000801FF0100,$FFFE0C01FF000203,$FE0500FEFFFF05FF
  Data.q $0101FFFE0006FEFF,$00FEFEFFFE00FEFF,$0107FFF8FFFD01FF,$2020202020200000,$6E20322020202020
  Data.q $2E3939393120766F,$0000000028000137,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0800400004003000
  Data.q $180008000E002C00,$3C00080020001600,$5000000046000000,$640000005A000000,$000000006E000000
  Data.q $1E0028000A002000,$3C00200032001800,$5000200046002000,$640020005A002000,$780020006E002000
  Data.q $0600200082002000,$0005030205030206,$0000800000000000,$0000000000000000,$0000000000000000
  Data.q $0003330000000000,$0003330000000000,$20000570007F2800,$2020202020202020,$2020202020202020
  Data.q $FE00012020202020,$0000FF000000FF01,$000000FF01FF0000,$0000000000000000,$01FFFF000002FF00
  Data.q $010101FE00000101,$FE0100000100FD01,$02FE00000101FF01,$13D7EE03061A2002,$F2FAF42FC7F71401
  Data.q $1624FFF9F9EA1AFA,$D8EDFF2900F0DCF9,$0219F107FAEB0823,$0CEF0CDB0939FCE9,$260DDF1BE106FAFD
  Data.q $FB42D01EF5EF12E2,$0CF2F204FA19F8DD,$0B09F1F912F60BFD,$21EEFEE6021D07EE,$1B12E6F2EA140EFB
  Data.q $E819F5FCFA0AF6EF,$EBFD111F00F2FD0F,$F421DE0FFAFC17E9,$F30907EA0917FBF9,$000311EFEDFC0018
  Data.q $EC0401FB0FEC1FEB,$0AE2120804FFFD0B,$0009F60BF016E409,$FBEF02EE2EF20EF3,$FDFC29E40305F10F
  Data.q $0DF500FC0FE2020E,$F1F722F9E81FE104,$07F9EFFE1CEA1400,$0426F5EE0613E70C,$EA26F1FA000BF2EF
  Data.q $ECED25E8FCFC050B,$FEFFFFF9FA0EE42E,$F800FF11F513E80B,$12F8FB0603F70CF9,$FDF824E805FE12EB
  Data.q $EF0B0AF50DED15EB,$08F5EC1908F20405,$10FCFA12EDF712F9,$F81AEAFC1DF000FA,$0A0909F505F019EF
  Data.q $0E03F60FF3F405F4,$FB09FCFC0404FDEF,$FA05FFF3FC22E80C,$1004F224EC0501FE,$FD09F90BF6F6FEF6
  Data.q $F502F709FF0DF2FD,$1FF4F7F5FB190008,$F506070805F9F7F4,$0907FD0B01F514ED,$F405FC080501F5F2
  Data.q $F7FFFE0604FBFE0B,$0AF00907F5F81EF3,$14F101FB0DFDFAFE,$04F50EEE19F307F4,$F7F81AFCF614F3FC
  Data.q $08FDF901FFFF0BF6,$F40DFF08EE1AF201,$F80207F306FC04FB,$F916F1F5FC011005,$0DF9F9FEFD050500
  Data.q $FB030CF502FAFF06,$02FEF70A00FC0000,$F80108F5FBFB18F8,$0005F505FE020005,$F4FD11F4030005FD
  Data.q $00F908FFFD04FA08,$F806F9FD06F21000,$F417F207FDFB010B,$06FD08F5F812F107,$0A05F80207F405FC
  Data.q $FC05FF00F70AFFF5,$F009FB09FCFB0007,$0103010302F7FB11,$FF03030001FFFA02,$FC0A02FA0BFAFEFA
  Data.q $04FD02FF06F702FB,$08F701FB06F910F7,$FB07FEFA020004FC,$00F90400FA06F80A,$FFFA01030102FA05
  Data.q $FF0302F60DF6FE0A,$FEF80804FA08FC00,$02FCFD06F80406F9,$0DFCFEFE06F80403,$0BF9FE01FD01FEFE
  Data.q $000AF5FCFF010BF8,$FEFD03FA09FEFC00,$FE0206FE07FB0002,$FEFF00FF010004F6,$FCFF05FCFF0AF607
  Data.q $FDFDFF07F8000203,$F806FD02FC04FD05,$FEFF0101FF00FF08,$07FDFE02FF02FC03,$FFFF01FE0400FB00
  Data.q $01FD06FB00010100,$FDFF05FB01FD0103,$FD0103FA05FE0300,$7420202000000021,$6C70406E65766172
  Data.q $6E2E642D74656E61,$0000280000377465,$0000000000010700,$0000000000000000,$0000000000000000
  Data.q $0028000137000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0001004000000000,$003C0000001B0009
  Data.q $003C0000003C0000,$00460000003C0000,$005A000000500000,$006E000000640000,$000A002000000000
  Data.q $00320018001E0028,$00460020003C0020,$005A002000500020,$006E002000640020,$0082002000780020
  Data.q $0202010006030020,$0000000000030503,$0000000000000080,$0000000000000000,$0000000000000000
  Data.q $0000000100000097,$D001E42000000096,$7369727465540B0D,$2020207661772E32,$2020202020202020
  Data.q $FB00020202F902E7,$020102FFFE020102,$0004F903000103FA,$00FC020104FDFE02,$FF010103F9030103
  Data.q $020102FB030002FE,$02FC01010202FA01,$0AFE020200040002,$FE01FE04FF140100,$FEFE07FE00FE0004
  Data.q $0101FFFFFE06FEFF,$FF00FDFF05FEFEFF,$FEFE030000FDFE06,$FF04FEFEFFFF03FF,$05FFFEFF0200FFFE
  Data.q $FEFEFF0500FC00FD,$00FDFE00FEFF0300,$FB02EB0000F700FF,$070103FFFD000102,$0000000000000001
  Data.q $0000000000000000,$0000000000000000,$0000002800013700,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000,$0000000000000000
  Data.q $0007000100400000,$0000003C00000016,$0000003C0000003C,$000000460000003C,$0000005A00000050
  Data.q $0000006E00000064,$0028000A00200000,$002000320018001E,$002000460020003C,$0020005A00200050
  Data.q $0020006E00200064,$0020008200200078,$0503020000000603,$0080000000000003,$0000000000000000
  Data.q $0000000000000000,$0060000000000000,$005F000000010000,$0005D001E4200000,$2020202020202020
  Data.q $2020202020202020,$FD04202020202020,$FEFEFEFDFEFDFEFE,$FEFFFEFEFEFEFEFE,$FEFFFFFEFEFFFEFE
  Data.q $04FFFEFFFFFFFEFF,$0303030304030403,$0203020303030303,$0202020302030203,$0202020103010302
  Data.q $0202010102020102,$FCFF010101020101,$FDFDFDFCFDFDFCFD,$0021FDFDFEFDFDFD,$0000000000000000
  Data.q $0000000000000000,$0000000000000000,$2100000028000037,$0000000000000000,$0000000000000000
  Data.q $0000000000000000,$0000002800003700,$0000000000000021,$0000000000000000,$0000000000000000
  Data.q $0000280000370000,$6666700000002100,$276D20656A202C66,$00656472656D6D65,$0028000037000000
  Data.q $6F63000000210000,$72206E7520656D6D,$2E74726F6D207461,$2800003700002E2E,$0000000021000000
  Data.q $0000000000000000,$0000000000000000,$0000370000000000,$0000002100000028,$6C2061207369614D
  Data.q $63656C6665722061,$0037002C6E6F6974,$0000210000002800,$20746172206E7500,$00656E2074726F6D
  Data.q $3700000000000000,$0021000000280000,$656D6D6527730000,$2C73617020656472,$00747365206C6920
  Data.q $2100000028000037,$2E74726F6D000000,$000000293A202E2E,$0000000000000000,$0000002800003700
  endmusic:
EndDataSection



Haut
 Profil  
Répondre en citant le message  
 Sujet du message: Re: Tetirs
MessagePosté: Sam 25/Fév/2017 22:39 
Hors ligne

Inscription: Jeu 07/Juin/2007 22:54
Messages: 261
zut... bon je l'avoue j'ai fait le faible... j'ai pris des son externe...
http://37.187.88.44/boby/tetirs.7z pour ceux qui veulent.
vurvur c'est pas très gentil ce que tu as fait... j'me sent obligé de tout faire en code maintenant XD


Haut
 Profil  
Répondre en citant le message  
 Sujet du message: Re: Tetirs
MessagePosté: Sam 25/Fév/2017 22:53 
Hors ligne
Avatar de l’utilisateur

Inscription: Dim 22/Aoû/2010 15:24
Messages: 6863
Localisation: IDF (Yvelines)
vurvur a oublié de mentionner Bin2Data par Ts-Soft, un utilitaire permettant de convertir un binaire image ou sons en données pouvant s’insérer en datasection.

Une fois lancer il suffit de glisser le son ou l'image sur la fenêtre.

Fil de discussion : http://www.purebasic.fr/english/viewtopic.php?p=374183
Download : https://dl.dropboxusercontent.com/u/3086026/Bin2Data.pb
Download alternanif : https://github.com/pbcodex/Bin2Data/archive/master.zip

_________________

➽ Config PureBasic : i3, RAM 4Go, NVidia (1024 Mo), Windows 10 - PB 5.70 LTS
➽ Je papote aussi sur http://purebasic.chat

➽ Sites personnels http://falsam.com & EasySprite.js

➽ Je ne réponds pas aux MP techniques


Haut
 Profil  
Répondre en citant le message  
 Sujet du message: Re: Tetirs
MessagePosté: Sam 25/Fév/2017 23:27 
Hors ligne

Inscription: Ven 29/Aoû/2014 19:52
Messages: 35
boby a écrit:
vurvur c'est pas très gentil ce que tu as fait... j'me sent obligé de tout faire en code maintenant XD


Te sens pas obligé c'était juste pour donner un exemple :)


Haut
 Profil  
Répondre en citant le message  
 Sujet du message: Re: Tetirs
MessagePosté: Dim 26/Fév/2017 21:28 
Hors ligne
Avatar de l’utilisateur

Inscription: Jeu 29/Juil/2004 16:33
Messages: 2802
Localisation: Klyntar
Merci pour l'exemple vurvur :P






@++

_________________
Windows 10 x64, PureBasic 5.71 Beta 1 x86 & x64
GPU : radeon HD6370M, CPU : p6200 2.13Ghz


Haut
 Profil  
Répondre en citant le message  
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 21 messages ]  Aller à la page Précédente  1, 2

Heures au format UTC + 1 heure


Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages

Rechercher:
Aller à:  

 


Powered by phpBB © 2008 phpBB Group | Traduction par: phpBB-fr.com
subSilver+ theme by Canver Software, sponsor Sanal Modifiye