I am trying to include in some other application..but the problem is that i am making a class which is derived from MMdaAudioToneObserver and thus want to call this from a view but aftre successful compilation the memory error occurs..
what is the problem?
i was able to solve the problem by breakppint inclusion but the other problem is that i am abale to play the tone but not any file........is there a special format for the PrepareToPlayFileSequence function ...as i am trying to play .wav file using this...but using this the player panics and gives a breakpint error......if there is pls give me those files which i can test for my application......
for you problem, I don't really know what could be wrong. The sound files should works same way always, at lest there shouldn't be any problem using wav if you can made Midis work (otherway around I could understand), so just check all examples there are available and double check your code one more time.
Test it in the phone, I have a feeling that it doesn't really work on the emulator. It should be able to play any valid sound file. Be careful not to try playing zero byte sized files, since I remember it jamming the phone (anyway, if you manage to do it just remove battery), same behaviour of course happens with AudioRecorder also.
Do u mean that the things which were posing a prob on the sound trecorder application on the emulator will run fine on the device ?
it due to the formats of the files which we r running or any other reason...i thought the same? if that is true then there will be many things which will not wrok out as they r many things which will be device specific?
thanx for the timely help......but deat the function preparetoplayfilesequence is not working on the emulator but the same code works well while playing tones..wat is the reason behind this..i am giving a midi sound to play also i have tried to play a wav file too...
the problems regrading sound recorder using different coder still persist and also regarding paying a file sequence remains