Posibilitat de reproduir els sons en bucle o un numero de vegades #2
Notifications
Total Time Spent: 16 minutes
JailDoctor
16 minutes
No due date set.
Dependencies
No dependencies set.
Reference: JailDoctor/JailAudio#2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Posibilitat de reproduir els sons en bucle o un numero de vegades
pa que?
No, ara en serio. Els wav? Mai he vist ninguna api, framework o lo que siga que ho permetera... lo qual no vol dir que jo no puga fer-ho, pero ficar'm un exemple de la seua utilitat o algo, pa quan estiga fent-ho no estiga pensant "en serio? perque estic fent açò?" XD
pos el SDL_mixer pense que si que ho tenia, igual m'estic rallant
Si tinc poca vida puc fer que sone el ruido de poca vida en bucle, si tinc una metralleta puc fer que el sonido de disparar estiga en bucle, si tinc un coche polisia puc fer que el so de sirena sone en bucle
http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_28.html
Mix_PlayChannel
int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops)
channel
Channel to play on, or -1 for the first free unreserved channel.
chunk
Sample to play.
loops
Number of loops, -1 is infinite loops.
Passing one here plays the sample twice (1 loop).
Fet