Posibilitat de reproduir els sons en bucle o un numero de vegades #2

Closed
opened 2021-02-04 13:25:49 +01:00 by JailDesigner · 4 comments

Posibilitat de reproduir els sons en bucle o un numero de vegades

Posibilitat de reproduir els sons en bucle o un numero de vegades
Owner

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

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
Author

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

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
Author

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).

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).
JailDoctor started working 2021-02-04 14:20:58 +01:00
Owner

Fet

Fet
JailDoctor worked for 16min 43s 2021-02-04 14:37:40 +01:00
Sign in to join this conversation.
2 Participants
Notifications
Total Time Spent: 16 minutes
JailDoctor
16 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JailDoctor/JailAudio#2