Page 4 of 15 FirstFirst 1234567891011121314 ... LastLast
Results 31 to 40 of 150

Thread: Llama's and Intuition's Techie Thread

  1. #31
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    Quote Originally Posted by TheLlama
    Cool, I'm glad I could point you in the right direction. Now would be a good time to get that pub-ftp or BB up and post the spectrum and fmod classes. I just regressed my original values to find the equations that I like. To make it so the user can adjust the spectrum settings to their own taste - I think that the best idea is to calculate the look-up arrays at startup. I'm thinking of either having it so the user plugs the values into A * log( f * D ) * B / log(C). That, or have a simple parser that can read in an equation symbolicly.
    I'll try and get that up soon. I'm guessing most users would never use that though. As long as the response is close to what they expect, I can't see too many people fooling with it beyond mathematical curiosity.

    Once I get that code somewhere you can peruse it, you'll see my method is similar in theory but the implementation is quite a bit different but I guess that goes with territory .

    I'm thinking of possibly making things like scrolling displays and the spectrum analyzer plugins so they can be replaced per the user's taste - e.g. a skin could also contain the libraries for the various displays so they change along with the graphics, sounds and palette changes that go with that skin.
    Silverwolf 2 is dead.
    Silverwolf 3...?

  2. #32
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    Quote Originally Posted by intuitionsys
    I'm thinking of possibly making things like scrolling displays and the spectrum analyzer plugins so they can be replaced per the user's taste - e.g. a skin could also contain the libraries for the various displays so they change along with the graphics, sounds and palette changes that go with that skin.
    Cool, this is my plan too.. Eventually. I'm thinking of using an XML file that can be loaded at runtime to layout the different screens. This won't be for a while, I'm still getting the player to _my_ liking. However, I think I like my player more than most players I use on the desktop so having an XML layout file will help ease the transition between the small flat panel and a desktop.

  3. #33
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    Okay I've got a phpBB up at swaesbb.intuitionsys.com (the site I was eventually going to do for Silverwolf anyway). It may take a day for the DNS records to update but it can be directly accessed at www.intuitionsys.com/phpBB/index.php. It's quick and dirty but it works.

    I left my code updates at work so I'll post them tomorrow morning...

    btw I changed the methodology again for spectral gains; using a logarithmic gain curve against the linear values that works very well without alot of bs.

    I'm now focusing on piping Xine audio into Silverwolf's FMOD instance, most likely by writing a plugin that shoots the data through a socket connection. FIFOs suck.

    Update: Okay the audio and fft classes are there now in the "Code Snippets" area. It looks like swaesbb.intuitionsys.com has taken hold now as well.
    Silverwolf 2 is dead.
    Silverwolf 3...?

  4. #34
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    After alot of "make it work quick" attempts, it appears the best way (besides directly embedding it a la Kaffeine) to get Xine to pump audio into the existing FMOD instance (not just my app but any app that would be using FMOD) is going to be to modify the existing audio file driver in Xine to instead send that data over a socket that I can then use Sound::readData() to capture from. I haven't tested this idea yet though. Any suggestions? Better ideas?
    Silverwolf 2 is dead.
    Silverwolf 3...?

  5. #35
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    Quote Originally Posted by intuitionsys
    After alot of "make it work quick" attempts, it appears the best way (besides directly embedding it a la Kaffeine) to get Xine to pump audio into the existing FMOD instance (not just my app but any app that would be using FMOD) is going to be to modify the existing audio file driver in Xine to instead send that data over a socket that I can then use Sound::readData() to capture from. I haven't tested this idea yet though. Any suggestions? Better ideas?
    Sounds like a good idea. What reasons are you using sockets over pipes? Just curious. That would be really spiffy if it works out.

    BTW, is anyone up for beta testing my gui framework in a week or so? I need some comments about usablity and I want to test it out as many system configurations as possible. (The software is *still* pretty young however).

  6. #36
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    A pipe might work if I modify the file driver to do it that way (instead of over a socket) so that's a good suggestion.

    A simple filesystem FIFO just isn't practical though since it blocks I/O on both sides until both are reading/writing. It just makes synchronization of the two a nightmare.
    Silverwolf 2 is dead.
    Silverwolf 3...?

  7. #37
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    Quote Originally Posted by intuitionsys
    A simple filesystem FIFO just isn't practical though since it blocks I/O on both sides until both are reading/writing. It just makes synchronization of the two a nightmare.
    True, something lightweight would probably be better.

  8. #38
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    I'll post the audio.cpp/h files on swaesbb.intuitionsys.com (again) once I get the Xine stuff working.

    Everything else works great though
    Silverwolf 2 is dead.
    Silverwolf 3...?

  9. #39
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    Quote Originally Posted by intuitionsys
    I'll post the audio.cpp/h files on swaesbb.intuitionsys.com (again) once I get the Xine stuff working.

    Everything else works great though
    Thanks. You're saving me a bunch of time rewritting my code from C FMOD to FMOD Ex.

    I looked at the Player class, it is alot like I expected which is good. The only things I really need to change are using libsigc instead of Qt sigslots and I want to make the class singleton so that various portions of the software can change what is playing, get player info, etc... I think I'm going to do the same with my database class.

  10. #40
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    Cool glad to help. Btw "AngryLlama" ?

    You may have noticed the scaling method is a blend of linear and logarithmic math but it works very well. I also chopped the very high end off the spectrum analyzer display (the reason for 40 bars instead of 64) since most MP3s rarely have much signal in the 18k+ range so it makes the display look lopsided.
    Silverwolf 2 is dead.
    Silverwolf 3...?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •