NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 66 67 68 69 70 … 93 Next »
plugin control of sound card MUTE

 
  • 0 Vote(s) - 0 Average
plugin control of sound card MUTE
paulg
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Aug 2005
#1
2005-10-10, 11:04 PM
I would like to MUTE the master valume on my sound card when exiting MyAlbums 2. If I don't then the TV records also play over my whole house speaker system. Any ideas?

Paulg
betlit
Offline

Senior Member

Posts: 449
Threads: 17
Joined: Feb 2005
#2
2005-10-11, 08:01 AM
hmm.. the only way i know is to import waveOutSetVolume from winmm.dll... which is not the master volume and not really 'mute'

Code:
[ DllImport( "winmm.dll", EntryPoint="waveOutSetVolume" )]
private static extern long waveOutSetVolume(long uDeviceID, long dwVolume);

by calling
Code:
long retval = retval=auxSetVolume(0,0);
you set the volume to 0... calling auxSetVolume(0,0xFFFFFFFF) sets both speaker to full volume.

btw: the hex-value is for both speakers. the first four digits for the left, the last four digits for the right speaker (or vice versa). 0x0000FFFF sets one of them to full, the other to 0.
AMD 1600mHz, 512 M RAM, 20+160 GB drive, Hauppauge PVR-350 + PVR-150 + PVR-150MCE, Win XP Pro SP3, using software decoding.


There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.

There is another theory which states that this has already happened.

(The Restaurant at the End of the Universe)
tkgafs
Offline

Senior Member

Posts: 594
Threads: 61
Joined: Jun 2004
#3
2005-10-11, 09:45 AM
paulg Wrote:I would like to MUTE the master valume on my sound card when exiting MyAlbums 2. If I don't then the TV records also play over my whole house speaker system. Any ideas?

Paulg

low tech answer either use a second sound card for gbpvr [which is what I do] and or I have a box I got from tandy years ago for controlling upto 3 tapedecks allowing you to copy between multiple ones I now use this as a means of switching off gbpvr from my house stereo system

tkgafs
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IPTV like stream from Sound Card input - FM Radio Project NumberFive 3 1,562 2022-11-20, 04:28 PM
Last Post: mvallevand
  PIP plugin for Kodi sgilani 2 3,075 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,550 2020-11-14, 08:01 PM
Last Post: sub
  Remote control example code? drmargarit 4 3,900 2018-04-21, 11:24 PM
Last Post: drmargarit
  API help - remote control greg in kansas 0 2,697 2016-07-04, 03:54 PM
Last Post: greg in kansas
  ios app to control npvr ui idea jnbooker15 4 3,717 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,532 2015-09-21, 06:39 PM
Last Post: jnbooker15
  VIdeo playback from plugin mvallevand 5 3,630 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,995 2014-11-14, 02:05 AM
Last Post: Benoire
  Kinect Voice (Gesture) Control topcat 5 3,613 2014-09-20, 12:03 PM
Last Post: topcat

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

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

Linear Mode
Threaded Mode