Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:32 24 Aug 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 : PicoMite: How to determine if audio is configured ?

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4318
Posted: 08:56am 20 Aug 2025
Copy link to clipboard 
Print this post

Hi folks,

There is a user of Z-MIM on the PicoMiteVGA reporting this error when the "bell" plays:

[650] If type% And con.SCREEN% Then Play Tone 329.63,329.63,100
Error : Audio not enabled

This is on a "reference board" without audio.

Is there a way to determine if audio is enabled/configured or do I need to ON ERROR SKIP ?

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10371
Posted: 09:12am 20 Aug 2025
Copy link to clipboard 
Print this post

mm.info(option audio)
} else if(checkstring(tp, (unsigned char *)"AUDIO")){
           if(Option.AUDIO_L)strcpy((char *)sret,"PWM");
           else if(Option.AUDIO_MISO_PIN)strcpy((char *)sret,"VS1053");
           else if(Option.AUDIO_CLK_PIN)strcpy((char *)sret,"SPI");
   else if(Option.audio_i2s_bclk)strcpy((char *)sret,"I2S");
           else strcpy((char *)sret,"NONE");
           CtoM(sret);
           targ=T_STR;
   return;


Note I2S not included in current releases - will return NONE
Edited 2025-08-20 19:16 by matherp
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5166
Posted: 09:15am 20 Aug 2025
Copy link to clipboard 
Print this post

Hi Tom,

MM.INFO(OPTION AUDIO)
returns NONE when no AUDIO

Volhout

EDIT: response crosses Peters.
Edited 2025-08-20 19:16 by Volhout
PicomiteVGA PETSCII ROBOTS
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4318
Posted: 09:20am 20 Aug 2025
Copy link to clipboard 
Print this post

Super, thank you.

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
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