Playing an audio file with Allegro 5 API

Eigene oder Gemeinschaftsprojekte, Klassen, Module, Codeschnipsel, HowTos, ...
Antworten
vuott
Foriker
Beiträge: 82
Registriert: Fr 16. Jan 2015, 01:27
Kontaktdaten:

Playing an audio file with Allegro 5 API

Beitrag von vuott » Sa 7. Feb 2015, 16:37

Hello,

Allegro 5 version allows to use its external functions in Gambas to play an audio file (.wav, .flac, .ogg, .it, .mod, .s3m, .xm) .


Well, I wrote a little example in WIKI of italian Gambas forum:
http://www.gambas-it.org/wiki/index.php ... _Allegro_5

(language: italian )

Benutzeravatar
gambi
Moderator
Beiträge: 319
Registriert: Mi 8. Mai 2013, 21:46
Kontaktdaten:

Re: Playing an audio file with Allegro 5 API

Beitrag von gambi » Sa 14. Feb 2015, 10:10

Hi vuott,
that's a great web page showing the possibilities how to use EXTERN.
Thank you.

gg

vuott
Foriker
Beiträge: 82
Registriert: Fr 16. Jan 2015, 01:27
Kontaktdaten:

Re: Playing an audio file with Allegro 5 API

Beitrag von vuott » Sa 14. Feb 2015, 16:24

Thank you so much, gambi ! :)

Well, if you like to see more about external function and audio and Midi, I point out to you these other pages (with a lot of exmples) I wrote on WIKI of italian Gambas forum:

http://www.gambas-it.org/wiki/index.php ... file_audio

http://www.gambas-it.org/wiki/index.php ... _file_.mid

tux_
Moderator
Beiträge: 949
Registriert: Di 11. Nov 2008, 20:05
Kontaktdaten:

Re: Playing an audio file with Allegro 5 API

Beitrag von tux_ » Sa 14. Feb 2015, 16:33

My eyes were almost dropping out when I saw this massive list. Good job Italy! :-)
Achtung: Es passiert, dass ich einen frisch geschrieben Beitrag innerhalb von 10 Minuten noch 3-4 Mal aendere!

vuott
Foriker
Beiträge: 82
Registriert: Fr 16. Jan 2015, 01:27
Kontaktdaten:

Re: Playing an audio file with Allegro 5 API

Beitrag von vuott » Sa 14. Feb 2015, 20:44

tux_ hat geschrieben:My eyes were almost dropping out when I saw this massive list. Good job Italy!


Thanks,Tobi, it was an enormous work: ...I wrote 99% Bild of the whole current italian Gambas wiki.

Benutzeravatar
gambi
Moderator
Beiträge: 319
Registriert: Mi 8. Mai 2013, 21:46
Kontaktdaten:

Re: Playing an audio file with Allegro 5 API

Beitrag von gambi » So 15. Feb 2015, 11:04

Il mio rispetto 8-)
If you have time and you are looking for a new challange you can take a look a the linphone API. As Tobi said, this could become a nasty thing. And he was right. Nevertheless it would be great thing to use the API within gambas. linphone offers not only VoIP but also Video and Chat, and you can use SRTP (secure RTP).
My current state about this youn can find here viewtopic.php?f=3&t=4814#p10663
I guess, that works because if I start the Sub again, I get a message that Port 5060 is already in use. Thats a clue something happened in the right way.
If you have any idea or suggestion about that, I would be very happy.

ciao
gg

vuott
Foriker
Beiträge: 82
Registriert: Fr 16. Jan 2015, 01:27
Kontaktdaten:

Re: Playing an audio file with Allegro 5 API

Beitrag von vuott » So 15. Feb 2015, 16:34

gambi hat geschrieben:Il mio rispetto


...non sum dignus !


gambi hat geschrieben:[b]If you have time and you are looking for a new challange you can take a look a the linphone API.

Yes, I had seen:
viewtopic.php?f=3&t=4814#p10653


gambi hat geschrieben:[b]As Tobi said, this could become a nasty thing. And he was right.

Yes, I share Tobi's opinion. This library is very hard.


gambi hat geschrieben:[b]If you have any idea or suggestion about that, I would be very happy.

I can really say little, expected and banal:
- take an example in C that works;
- translated it in Gambas and try your work progress;
- if you'll have problems, ask in this forum (...but do not forget you have 3 forums and the Mailing List at disposal !)

Ciao ! Bild

Benutzeravatar
gambi
Moderator
Beiträge: 319
Registriert: Mi 8. Mai 2013, 21:46
Kontaktdaten:

Re: Playing an audio file with Allegro 5 API

Beitrag von gambi » Mo 16. Feb 2015, 19:44

- take an example in C that works;
- translated it in Gambas and try your work progress;
- if you'll have problems, ask in this forum (...but do not forget you have 3 forums and the Mailing List at disposal !)


Thank you for answering, vuott. I'll show in the other thread the progress, if there is one :?: :?
gg

Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste