Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:45 26 Nov 2024 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 : Question about PLAY WAV

Author Message
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 830
Posted: 05:12pm 21 Jan 2024
Copy link to clipboard 
Print this post

Is it possible that the PicoMite crashes if the path is too long?
The following program:
Option Explicit
Dim WAVbusy As INTEGER
Const TRUE=1
Const FALSE=0

Print "Play"

Do
 WAVbusy=TRUE
 'Play WAV "B:\_Lakesidebox+Zwitscherbox\birds-in-forest-on-sunny-day_birds-in-forest-on-sunny-day.wav",IROUTINE
 Play WAV "B:\_Lakesidebox+Zwitscherbox\birds-in-forest-on-sunny-day--Kopie14444hallo.wav",IROUTINE
 Do
 Loop While Wavbusy=TRUE
Loop

Sub IROUTINE
WAVbusy=FALSE
End Sub

It is the same WAV twice, just with a different name.
The first line (currently deactivated) works.
The second leads to this error:
Play
Error: Invalid address - resetting
>

Is this due to the path length?

Frank

These are my settings:
PicoMite MMBasic Version 5.08.00
OPTION SYSTEM SPI GP10,GP11,GP28
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION HEARTBEAT OFF
OPTION PICO OFF
OPTION LCDPANEL ST7789_135, LANDSCAPE,GP8,GP12,GP9,GP25
OPTION SDCARD GP23, GP18, GP19, GP20
OPTION AUDIO GP2,GP3', ON PWM CHANNEL 1

Edited 2024-01-22 03:14 by Frank N. Furter
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 09:45pm 21 Jan 2024
Copy link to clipboard 
Print this post

Latest PicoMite manual p19.
  Quote  The maximum file/path length is 63 characters.
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 830
Posted: 07:44am 22 Jan 2024
Copy link to clipboard 
Print this post

Hi Phil,

THANK YOU! This is exactly the information I was looking for!

Frank
 
Print this page


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

© JAQ Software 2024