Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:38 18 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: minor issue with play wav IRQ and workaround

Author Message
epsilon

Senior Member

Joined: 30/07/2020
Location: Belgium
Posts: 255
Posted: 07:14am 24 Mar 2021
Copy link to clipboard 
Print this post

Here's a minor issue I came across on CMM2:

My program uses PLAY WAV with an interrupt routine that's called when the file finised playing, like this:


PLAY WAV sound_curFile$, Sound_play_int


When the program ends, the device is left in a somewhat confused state. E.g. when I launch xedit, I get this error:

Error in line 877: Unknown command

This is line 877:


SETTICK CURSOR_BLINK_PERIOD%, blinkCursorInt, 1


To clear the condition, I just do this:


PLAY WAV ""
PLAY STOP


i.e. the trick is to kick off a PLAY WAV _without_ an interrupt routine. After that, everything goes back to normal.
Epsilon CMM2 projects
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025