1

Est-ce que qqun pourrait m'expliquer comment ça marche ?
J'aimerais faire une fonction 'beep' pour vertel.
Svp ne me proposez pas d'aller voir les sources de flib...

P.S : Je voulais appeller ce topic "Le son", mais j'ai eu une erreur "Ce topic existe déjà", je l'ai recherché dans les 25 pages de la rubrique C mais sans résultat sad
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

2

Qu'est-ce que tu ne comprends pas dans les sources de Flib confus ...

3

void beep(short freq, long duree) {      unsigned long *rombase = (unsigned long*)((*(unsigned long*)0xC8) & 0x600000), hwpb = *(rombase+65);     // Pour détecter le hardware,      long loop, maxloop = freq*duree/50 ;                                                                           // adaptation de la méthode de JM.      short i, j = peekIO(0x60000E) ;      OSSetSR(0x0700) ;      freq = (hwpb-(unsigned long)rombase < 0x10000 && *(unsigned short *)hwpb > 22 ? (*(unsigned long *)(hwpb + 22) == 1 ? 278000 : 364000) : 278000)/freq ;      pokeIO(0x60000C, 6) ;      for (loop = 0 ; loop < maxloop ; loop++)      {           pokeIO(0x60000E, j ^= 0x03) ;           for (i = 0 ; i <= freq ; i--) i += 2 ;      }      pokeIO(0x60000E, j &= 0xFC) ;      pokeIO(0x60000C, 0x8D) ;      OSSetSR(0x0000) ; }

4

J'aimerais savoir si c'est vraiment interressant de monter un haut parleur sur la ti.
Est ce que le son est bon? Quels sont les avantages et les inconvénients que l'on peut rencontrer?
cool
Vive le coding gba.
www.codegba.fr.st

5

Le son n'est pas bon, mais par contre c'est très facile à réaliser smile
A moins que tu ne veuilles un système de professionnel wink, il suffit que tu achètes un adaptateur jack 3.5 stereo femelle -> jack 2.5 stereo male, que tu trouves dans toute boutique d'électronique digne de ce nom.

6

Et au niveau de la programmation comment ça se passe?
hum
Vive le coding gba.
www.codegba.fr.st

7

Tu peux utiliser FLib si tu programmes en Basic.
En C ou en assembleur, tu peux utiliser cette routine, ou une routine qui est disponible sur un site américain (dont je n'ai plus l'adresse sad).

8

La routine que j'utilise pour le C se trouve ici

cf aussi ce topic: topics/9554-sonorisation
Plis fòs ba pengwen là !

mon site: http://www.slubman.info/
partie GP32: http://www.slubman.info/gp32
partie TI: http://www.slubman.info/ti

9

zdrubal > ce n'est pas que je comprends pas les sources de Flib (enfin si, c aussi pr ça smile) mais je n'ai pas envie de prendre des sources de flib pour vertel si tu vois ce que je veux dire...
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

10

Ooops j'avais oublié : Merci Slubman smile
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

11

Bon ok après passage sur le site... C la routine de FL grin
J'ai pas tellement le choix roll
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

12

en gros, la qualité du son sur la TI équivaut à la qualité du son DOS (avec le buzzer de la carte mère)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

13

il y a une solution: uliliser Soundlib comme ca ca marche sous VTI mais adieu le nostub
avatar

14

kernel powa grin
(je v me faire frapper par Kevin grin)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

15

Plutôt qu'utiliser Soundlib, passez-lui un coup de ttdasm. grin
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

16

même si ça serait pas une mauvaise idée au niveau efficacité, ce serait pas très hoonéte...
et puis, je crois qu'il vaut mieux utilier sndlib 2 qui supporte les grays, non ?
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

17

C'est pour Vertel... Vous imaginez une lib pour le basic en mode Kernel vous ? grin
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

18

ça serait marrant, non ?
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

19

Bah... Dans le readme ça fait pas très serieux...

"This program is made in Ti-Basic, but you'll need PreOs or Unios to run it" grin
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

20

ben, y'a l'anticrash comme ça grin
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

21

Pour prévenir contre les plantages en Ti-Basic ? roll
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

22

exact
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

23

Sauf que si tu desassembles SoundLib, tu peux toujours la reprogrammer en _nostub wink

24

faut demander à l'auteur...

Bob, tu imagine :
Vertel, la première lib ti-basic à proposer une solution contre les plantages... (par l'utilisation de PreOS grin)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

25

Mon post #20 avait pour signification : "Quels plantages ?"

Le Ti-Basic pur ne plante jamais (enfin depuis la 2.05 je nai jamais fait planter la calc en ti-basic pur), et c'est à moi de me démerder pour que vertel ne plante pas...

Et puis une lib ti-basic en kernel... franchement... roll
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

26

j'ai déjà planté en ti-basic PUIR sous 2.03
(ok, juste une fois !)



mais ct plus humoristique qu'ot chose grin
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

27

Oué mais sous 2.03... Moi aussi je l'avais buggée, et plusieurs fois, mais jamais sous 2.05
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

28

sous 2.05, j'ai jamais codé en basic.
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

29

Moi si, j'arrete pas cool
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

30

j'ai planté en basic sous 2.03 pdt les vacanesc (loin de chez moi) =>,j'ai arrété le basic
je suis revenu chez moi.
la 2.05 venait de sortir => je suis passé à la 2.05
je suis passé au C
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall