1

I have implement game application in which i want to play mid sound file in the background.How it possible?

MD.
  • 1,131
  • 4
  • 18
  • 28
  • http://stackoverflow.com/questions/183112/how-do-i-play-background-music-in-my-iphone-game – Oren Mazor Dec 30 '09 at 06:09
  • @Oren Mazor: In the question you linked, the poster is asking how to play mp3 files. In this question, the poster wants to know how to play midi files. It's a totally different question. – Asaph Dec 30 '09 at 06:14
  • @Asaph, I think the answer for the question I linked answers this question as well. – Oren Mazor Dec 30 '09 at 06:18
  • @Oren Mazor: No it doesn't. Midi is not at all like other audio formats such as mp3. It's a totally different animal requiring a different API. – Asaph Dec 30 '09 at 06:32
  • This question is closer to the one he's asking: http://stackoverflow.com/questions/449057/midi-player-synthesizer-library-for-the-iphone – Brad Larson Dec 30 '09 at 14:05

1 Answers1

0

The short answer is there is no easy way. When this question came up before the best recommendation was to try porting TiMidity++. This appears to be difficult. A more iPhoney solution would be to convert your midi file into an audio file using something such as Easy-Pro Midi to Audio Converter 1.3 and then playing the the audio file normally in your app. This may have the downside of enlarging your app size.

Community
  • 1
  • 1
Michelle Six
  • 655
  • 3
  • 13