Author Topic: Musik oder Ton auf Android packen?  (Read 7689 times)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4291
    • View Profile
    • Portfolio
Re: Musik oder Ton auf Android packen?
« Reply #15 on: 2015-Nov-19 »
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

Offline LukasOK

  • Mr. Drawsprite
  • **
  • Posts: 56
  • Was kann ich Ihr nur schreiben? =D
    • View Profile
Re: Musik oder Ton auf Android packen?
« Reply #16 on: 2015-Nov-20 »
(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?

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4158
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Musik oder Ton auf Android packen?
« Reply #17 on: 2015-Nov-20 »
It's worth trying the media folder

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

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4291
    • View Profile
    • Portfolio
Re: Musik oder Ton auf Android packen?
« Reply #18 on: 2015-Nov-21 »
Exactly. And make the file is actually inside the media folder. ::) :-[

Offline LukasOK

  • Mr. Drawsprite
  • **
  • Posts: 56
  • Was kann ich Ihr nur schreiben? =D
    • View Profile
Re: Musik oder Ton auf Android packen?
« Reply #19 on: 2015-Nov-22 »
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.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4291
    • View Profile
    • Portfolio
Re: Musik oder Ton auf Android packen?
« Reply #20 on: 2015-Nov-22 »
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.

Offline LukasOK

  • Mr. Drawsprite
  • **
  • Posts: 56
  • Was kann ich Ihr nur schreiben? =D
    • View Profile
Re: Musik oder Ton auf Android packen?
« Reply #21 on: 2015-Nov-27 »
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?

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4291
    • View Profile
    • Portfolio
Re: Musik oder Ton auf Android packen?
« Reply #22 on: 2015-Nov-27 »
With PLAYMUSIC use STOPMUSIC.
With PLAYSOUND use STOPSOUND.

Offline LukasOK

  • Mr. Drawsprite
  • **
  • Posts: 56
  • Was kann ich Ihr nur schreiben? =D
    • View Profile
Re: Musik oder Ton auf Android packen?
« Reply #23 on: 2015-Nov-28 »
Sorry but some projects will not do
Windows = wav
Is working
Android = ogg
It does not work
what you why?

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4291
    • View Profile
    • Portfolio
Re: Musik oder Ton auf Android packen?
« Reply #24 on: 2015-Nov-28 »
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.

Offline LukasOK

  • Mr. Drawsprite
  • **
  • Posts: 56
  • Was kann ich Ihr nur schreiben? =D
    • View Profile
Re: Musik oder Ton auf Android packen?
« Reply #25 on: 2015-Nov-29 »
I want to use it with other types times.

Are there any side ogg other types?

Offline LukasOK

  • Mr. Drawsprite
  • **
  • Posts: 56
  • Was kann ich Ihr nur schreiben? =D
    • View Profile
Re: Musik oder Ton auf Android packen?
« Reply #26 on: 2015-Dec-18 »
Ich danke für alle Antworten :good: