Why doesn't the music play when the application is packaged for ad hoc testing ?
neoman
Member, BASIC Posts: 826
Why is the music not playing when the application is packaged for ad hoc testing and installed on an iphone using the .app file but works fine in GS Creator and GS viewer ?
Hello Everyone,
I am new to GameSalad and to the MAC world. I would appreciate your help. I am using GS Creator Version 0.10.00 on MAC OS X 10.8.2. I am testing on an iPhone 4s with IOS 6.
I have created a simple game with 3 levels which has 10 scenes. There is a music file which plays in the background. It is linked to an actor via the play music behaviour and set to loop. Other actors have the same behaviour applied but set to resume current music and loop.
The game works as expected when previewed in GS Creator and also works as expected when loaded onto GS viewer on the iPhone.
When the app is packaged into an .app file all aspects of the game work except for the music. All other sounds work.
The music file was only 24 seconds but I still imported it as a music file instead of a sound. I thought that might have been the problem as the music file was less than 30 seconds in length. I joined two versions of the same file together that way the music would play for 48 seconds which is more than 30 seconds but still had the same problem.
In GameSalad Creator Inspector under game and devices the Audio sound volume is set to 1 and music volume is set to 1 as well.
I am not sure if any one else encountered the same problem or not. I am also not sure if this could be a bug or if it is to do with IOS 6 or me not doing the right thing. If you could please shed some light or point me into the right direction I would appreciate it.
Thank you in advance.
Cheers,
Neoman
Hello Everyone,
I am new to GameSalad and to the MAC world. I would appreciate your help. I am using GS Creator Version 0.10.00 on MAC OS X 10.8.2. I am testing on an iPhone 4s with IOS 6.
I have created a simple game with 3 levels which has 10 scenes. There is a music file which plays in the background. It is linked to an actor via the play music behaviour and set to loop. Other actors have the same behaviour applied but set to resume current music and loop.
The game works as expected when previewed in GS Creator and also works as expected when loaded onto GS viewer on the iPhone.
When the app is packaged into an .app file all aspects of the game work except for the music. All other sounds work.
The music file was only 24 seconds but I still imported it as a music file instead of a sound. I thought that might have been the problem as the music file was less than 30 seconds in length. I joined two versions of the same file together that way the music would play for 48 seconds which is more than 30 seconds but still had the same problem.
In GameSalad Creator Inspector under game and devices the Audio sound volume is set to 1 and music volume is set to 1 as well.
I am not sure if any one else encountered the same problem or not. I am also not sure if this could be a bug or if it is to do with IOS 6 or me not doing the right thing. If you could please shed some light or point me into the right direction I would appreciate it.
Thank you in advance.
Cheers,
Neoman
Best Answer
-
iKandy Imagineer of Crazy Shit New York CityPosts: 310
Yup... the "play music" doesn't support MP3s. This is very irritating. Hopefully GS will fix this glitch. (Which apparently has been around since 2012)
Answers
Free Mini Games and Demo Templates
@iKandy Thanks for the reply. I accepted your answer so this thread does not remain unanswered and because I can't answer a question I have posted on this forum. Someone else has to answer it. Play music supports MP3s and I have used MP3s in other projects to play music.
This project was just weird or it could have been a problem with that specific MP3. Also sometimes when you are developing a project you might add more than one sound file format ie a .wav and an MP3 if you have a sound file with the same name duplicated GS gets confused. The music will work fine in the viewer and in preview mode but when you build an ad hoc no music will play due to having two sound files with different extensions the iDevice does not know which one to pick ... To solve this issue right click on the project file then select show package details > Go to the sound folder and delete the duplicated file. This will get the music working regardless if it is a wave or an MP3. Hope this helps clarifying things and thanks again for commenting on my post.
Free Mini Games and Demo Templates