Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Development: Muzac  (Read 3417 times)

0 Members and 1 Guest are viewing this topic.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Development: Muzac
« on: December 03, 2009, 05:09:52 pm »
As most of you know I spent some time replacing the video Engine in mala. This can be found in the mala beta.

I also wanted to replace the audio engine that drives the background music and Jukebox. There were various problems, Music resuming, shuffle/ random music was not so random etc.

I did some research the considered and tested the latest engines available and what I ended finding was the best idea was to use the 'VideoGrabber' package as it supports a Playlist and a few other goodies. I paid good money for this so it is a great that I can use it for audio as well.

So far so good.  And no more bass.dll required :-)

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Development: Muzac
« Reply #1 on: December 03, 2009, 05:59:25 pm »
Great News!

About that Video package. What was it called? I know it uses FFDSHOW in the background, and I downloaded the docs on the ffdshow api but haven't quite groked it yet. Did you purchase a wrapper for ffdshow, or are you making use of the ffdshow api directly.

I only ask because, well, since it's already going to have to be installed to run Mala, I thought I might as well make use of it in my plugin as well (assuming that doesn't violate any license agreements).

Ryglore

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 779
  • Last login:November 16, 2021, 05:49:39 pm
  • Likes to make things difficult.
    • The Brush Wizard
Re: Development: Muzac
« Reply #2 on: December 03, 2009, 09:33:44 pm »
I also wanted to replace the audio engine that drives the background music and Jukebox. There were various problems, Music resuming, shuffle/ random music was not so random etc.

I noticed that the screensaver isn't very random and I've actually had the same video play 2+ times in a row or within a few minutes of each other. I'd think that with 250+ videos that you would constantly see new ones pop up. Would this randomness be fixed as well?

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Development: Muzac
« Reply #3 on: December 03, 2009, 11:23:24 pm »
With true randomness, a video that has just played has the same odds of playing as any other video.  Therefore it is very possible to to have the same video play twice in a short period of time.  Sounds like you want a random playlist created before play begins instead of a random choice made after every video is displayed.

On the other hand, its getting late here in GMT-05:00 and I'm posting while too sleepy.  Wasn't this a thread about audio?  :dizzy:  
« Last Edit: December 03, 2009, 11:25:30 pm by SGT »

Ryglore

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 779
  • Last login:November 16, 2021, 05:49:39 pm
  • Likes to make things difficult.
    • The Brush Wizard
Re: Development: Muzac
« Reply #4 on: December 03, 2009, 11:43:28 pm »
On the other hand, its getting late here in GMT-05:00 and I'm posting while too sleepy.  Wasn't this a thread about audio?  :dizzy:  

Oh it is, but he mentioned VideoGrabber and using it for the audio. So I was just wondering. :)

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Development: Muzac
« Reply #5 on: December 04, 2009, 12:29:09 am »
Really, for "random" things like this, what you really want is a shuffle.

Ie take your whole list, shuffle it randomly, then start playing top to bottom. When you've played everything, reshuffle. I supposed it'd still be possible to play the same piece back to back, but just once per rotation.

That's the way I'm doing the slideshow anyway.

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Development: Muzac
« Reply #6 on: December 05, 2009, 06:24:16 pm »
About that Video package. What was it called? I know it uses FFDSHOW in the background, and I downloaded the docs on the ffdshow api but haven't quite groked it yet. Did you purchase a wrapper for ffdshow, or are you making use of the ffdshow api directly.

Using a Wrapper.  http://www.datastead.com/products/tvideograbber.html

With true randomness, a video that has just played has the same odds of playing as any other video.  Therefore it is very possible to to have the same video play twice in a short period of time.  Sounds like you want a random playlist created before play begins instead of a random choice made after every video is displayed.

Yes, I just added a line into the code so that might improve things a little for now.  http://www.delphibasics.co.uk/RTL.asp?Name=Randomize


Ie take your whole list, shuffle it randomly, then start playing top to bottom. When you've played everything, reshuffle. I supposed it'd still be possible to play the same piece back to back, but just once per rotation.

Yes, Audio will be like this. The Video screensave uses a different method but I will consider porting it to use this one day
« Last Edit: December 05, 2009, 06:41:46 pm by loadman »