NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 25 26 27 28 29 … 93 Next »
BASS - Getting Audio Data for Spectrum Analysis/Display

 
  • 0 Vote(s) - 0 Average
BASS - Getting Audio Data for Spectrum Analysis/Display
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#1
2009-02-02, 11:37 PM
Is it possible to use
Code:
// get 1000 16 bit samples
short buffer[1000];
BASS_ChannelGetData(achannel,buffer,2000);

in PVRX2? (The BASS dll is from http://www.un4seen.com)

If so, how do I define achannel, and what would be a complete code snippet?

Alternatively, are there other tools which can be used to do a FFT and get some spectrum details of the audio currently being played (DVD/TV/Music etc) by PVRX2?
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#2
2009-02-02, 11:59 PM
To be honest, I have know no idea. If this BASS dll hooks into some of the underlying windows media stuff and allows you to capture samples from any app using directshow to play audio, then it might also work with GB-PVR.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2009-02-03, 09:30 AM (This post was last modified: 2009-02-03, 09:49 AM by pBS.)
i used to use an avisynth filter that took audio and made a spectrum scope visual while you played, i used it to get visualizations on mvp...Smile
but i find avisynth very buggy when it comes to playing back recorded tv...

so i use Winamp and a LCDsmartie plugin to get a full spectrum analyzer on my vfd..Smile
doesn't work with spdif/hdmi outs but it does with everything else...Big Grin
winamp can use line-in or wave mix or whatever your sound card calls it to 'eavesdrop' on the audio being played and serves up a nice set of shared memory data w/the spectrum info.....apparently winamp has an api for fft data reading...

and that is 'read' by the smartie plugin...

nice part is, i can have an infinite number of channels, i run a 20 band spectrum when audio is playing, and a 5 band when it's tv...Big Grin
seems to work flawlessly and efficiently, only have to occasionally restart it after a few days monitoring..
not sure if source is available but it'd be a great place to start..winamp folks are fairly open about the workings...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#4
2009-02-15, 08:00 AM
I'm working on a C# implementation of the Vista Core Audio API which will include the DeviceTopology API that should give you what you need. It will only work with Vista though and not XP and it may take me a while.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,397 2018-10-23, 07:24 AM
Last Post: almightyj
  Getting more than 24 hours of Guide Data scJohn 4 3,568 2018-05-16, 04:20 AM
Last Post: sub
  Switching Audio Channels spitefulgod 0 1,986 2016-12-15, 08:42 PM
Last Post: spitefulgod
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,874 2014-11-14, 02:05 AM
Last Post: Benoire
  Merge xmltv data with xslt Graham 4 3,436 2014-01-02, 12:45 PM
Last Post: Graham
  Touch and http audio url's mvallevand 0 1,401 2013-11-03, 07:05 PM
Last Post: mvallevand
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,051 2013-03-24, 08:03 PM
Last Post: imilne
  Get NextPVR data directory from outside a plugin McBainUK 3 2,228 2012-02-11, 05:42 PM
Last Post: mvallevand
  Extracting data from XML files ACTCMS 4 2,323 2012-01-24, 12:16 AM
Last Post: sub
  Audio Renderers imilne 3 2,205 2011-09-29, 09:08 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode