Musik oder Ton auf Android packen?

Previous topic - Next topic

erico

I´m not sure I understood your answer, try using traditional gramatic germany because it is easier for google translator to do its job.

Anyways, for android, I use ogg, for pc, I can use wav or mp3.
Ogg will play on VLC on my pc but it won´t play inside my GLB.

I´m uploading the music file I used to test to a temporary folder online,
try to play that on android, use full path and playmusic.
It works fine here.

Get the ogg test music from here:
https://www.wetransfer.com/downloads/65ca9dd81ddfcac8ee4fbba97135e57720151119195741/2ec8edaa6bef55394ac1bccb3c82492120151119195741/135c3f

LukasOK

(English)
Hello,
I did the test song (Daxx - Paranoimia - Daxx Remix.ogg)

I have done so
Code:

PLAY MUSIC "Daxx - Paranoimia - Daxx Remix.ogg" TRUE
.....

I have still no sound. Do I need have the Media Folder for Android?

(Deutsch)
Hallo,
Ich habe den Test Song (daXX - Paranoimia - daXX Remix.ogg )

Ich habe es so gemacht

Code:
PLAYMUSIC "daXX - Paranoimia - daXX Remix.ogg", TRUE
.....

Ich habe trotzdem keinen Ton.
Muss ich den Media Ordner für Android haben?

Ian Price

It's worth trying the media folder

Code (glbasic) Select
PLAYMUSIC "Media/Daxx - Paranoimia - Daxx Remix.ogg" TRUE
I came. I saw. I played.

erico

Exactly. And make the file is actually inside the media folder. ::) :-[

LukasOK

OK, it is was trying
did not function.
I still have no sound.
If anyone knows.
He might make an example?
Please ::) ;)
I tried it is with other projects but has brought nothing.

erico

Check this thread here:
http://www.glbasic.com/forum/index.php?topic=9933.msg86777#msg86777

You can use that project as a test, it is playing mod and it.
Just add an ogg music to midia folder and rename it and match it in code and it should work out.

It works fine on android, but not on my windows pc.

LukasOK

Ok it works,
still:
Also with sound: "PLAYSOUND"?
But when I finish the program on Android runs it even further,
Can you also stop the sound?

erico

With PLAYMUSIC use STOPMUSIC.
With PLAYSOUND use STOPSOUND.

LukasOK

Sorry but some projects will not do
Windows = wav
Is working
Android = ogg
It does not work
what you why?

erico

I have tested ogg here on android and it seems to work fine on my phone and others, I have a galaxy note II.

My ogg is formated as:
16bit 44100 stereo

OGG not only for the encapsulator but the codec must be ogg vorbis.

It should work, if it dosen´t, post the code and APK you have so I can check it out on hardware.

LukasOK

I want to use it with other types times.

Are there any side ogg other types?

LukasOK

Ich danke für alle Antworten :good: