Hello,
I tried to play a MIDI event on a S60 phone using the MIDIClientUtility class.
Since I am not allowed to post attachments here, I try posting the relevant portions of my code directly:
MidiClientObserver is a class implementing MMidiClientUtilityObserver
Code:void CSequencerAppUi::ConstructL() { ... MIDIObserver=new MidiClientObserver(); MIDI=CMidiClientUtility::NewL((*MIDIObserver)); }The code compiles and runs fine, I just don't hear any sound...Code:TKeyResponse CSequencerAppUi::HandleKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType) { if (aType==EEventKey) { TTimeIntervalMicroSeconds duration(1000000); MIDI->PlayNoteL(1, 60, duration, 64, 64); return EKeyWasConsumed; } return EKeyWasNotConsumed; }
Has anyone any idea what's wrong??
Thanks



