Music component - Editor Vs Compiled program.

Post

Posted
Rating:
#1 (In Topic #1116)
Avatar
Expert
Quincunxian is in the usergroup ‘Expert’
 I have a strange issue.
I have a number of programs that use the gb.sdl2.audio - Music component.
If I use it to play any applicable media in the Editor (on Run application) there is no error and the file does not play.
If I compile to executable and then run that, every works as expected.

I've tried this with different projects with the same problem.

Can someone else confirm that this may be an issue or is it (yet another) me and my computer issue.

Cheers - Quin.
I code therefore I am
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
I ran the following program in the Editor, and it works OK for me. Sorry, but it seems that it is "(yet another) me and my computer issue."

Code (gambas)

  1. Public Sub Form_Open()
  2.  
  3.   Music.Load(Application.Path &/ "Sample.mp3")
  4.   Music.Play
  5.  
  6.  
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Expert
Quincunxian is in the usergroup ‘Expert’
 Thanks for checking.
I created a new project, copied in your code with a valid mp3 file and it has the same result - no sound.
I checked the status of Music.Playing and it returns true, so this suggests that the component is not in an error state.
I created an executable and the music played as expected.  *sigh*

I'll add it to the list of bizarre things that Gambas does in my machine from time to time.
I may have to put on a grass skirt, grab some bone rattles and do a dance around my computer.

Cheers - Quin.
I code therefore I am
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
thatbruce is in the usergroup ‘Regular’

Quincunxian said

I may have to put on a grass skirt, grab some bone rattles and do a dance around my computer.

Post video, we may be able to detect incorrect dance steps!  :D

Online now: No Back to the top
1 guest and 0 members have just viewed this.