mixer

JavaSound: Detect device change

不羁的心 提交于 2020-01-24 19:20:29
问题 Folks, I am working on an applet that captures audio from the local computer and streams it up to the server. I am using a Java applet that currently hooks onto the default device and performs the upstream. Things are running well. I now want to extend the functionality to allow users to choose the audio input device and to also show a sound level indicator of the chosen device in the web page. I wrote a multithreaded utility that would do AudioSystem.getMixerInfo(); periodically and look for

how do I get Mixer channels layout in java

懵懂的女人 提交于 2020-01-10 04:25:09
问题 I thought I can find anything on this great site but now I seem to face the issue with no answer :) Please help! Thing is, I need to play up to 6 different wav files with 1 channel each into 6 channels supported by system mixer (left, right, surround left, etc). Using 6 different SourceDataLines looks logical but from what I see, Mixer cannot do per-sample synchronisation for them, so I came up with interleaving them in separate thread and use only one SourceDataLine to play it. It works fine

Set mixer as “default” ALSA API

徘徊边缘 提交于 2020-01-06 08:38:26
问题 I wrote a code to open and control mixer volume: char *card, *channel; snd_mixer_t *handle = NULL; snd_mixer_elem_t *elem = NULL; static long alsa_min, alsa_max; void alsa_open_mixer( void ) { int err; static snd_mixer_selem_id_t *sid = NULL; if ((err = snd_mixer_open (&handle, 0)) < 0) return; if ((err = snd_mixer_attach (handle, card)) < 0) goto error; if ((err = snd_mixer_selem_register (handle, NULL, NULL)) < 0) goto error; if ((err = snd_mixer_load (handle)) < 0) goto error; snd_mixer

Reading the value of the volume in the windows mixer

喜你入骨 提交于 2019-12-25 08:47:52
问题 I am creating a program for me and my friends to use. I want to make a program that will take control over the Windows Audio Mixer. I am using C# I already have and idea on how to control the volume. But I would like some tips on controlling each application's individual volume level inside the mixer. The main question is (a bit interesting) : How can I read the value of the volume inside each application's individual meter? In other words, I want to read/get the value of the green and grey

Video and audio mixer with audio recording capability using nodejs

孤人 提交于 2019-12-24 18:53:32
问题 How can I make a video and audio mixer with audio recording capability using nodejs. Also I want an editable waveform graph of audio. Is there any supporting package in nodejs? 回答1: Unless you are lucky enough to find a package that does exactly what you want, I suspect that using ffmpeg through a nodes wrapper of interface library such as the one below will be the easiest approach: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg This allows you use all the power and large user community

Pygame Playlist without while True loop

冷暖自知 提交于 2019-12-24 07:10:38
问题 Here is a short snippet from my code: import pygame class Player(): playlist= ["track1.mp3","track2.mp3",...] def __init__(self): pygame.init() pygame.mixer.music.load(self.playlist[0]) pygame.mixer.music.play() def playnext(self): self.playlist = self.playlist[1:] + [self.playlist[0]] pygame.mixer.music.load(self.playlist[0]) pygame.mixer.music.play() My problem is that I want to play the next track after the first finished, but without a while true loop. This class is not the only one in my

How to realize a multi channel audio pre-mixer in .net

最后都变了- 提交于 2019-12-21 20:44:48
问题 I'd like to use C# to implement an application that can play multiple audio streams at the same time. Peanuts - now the interesting part: assuming every stream is single channel (mono) I want to adjust the volume for every speaker (5.1 or even 7.1) for every stream separately. I can use the windows mixer to do this, but the problem is, that there is only one mixer and I want to adjust this for every stream separately. Any ideas how to implement this? My first guess was to multiplex the stream

How to control the Microphone Boost in Windows 7?

孤街醉人 提交于 2019-12-13 16:42:11
问题 I am trying to control the Microphone Boost (level/(un)mute) in Windows 7 using the MIXER API in a C/C++ application, but I do not get the controls for the same. Can it be done using WASAPI? Can somebody suggest any other API to control the Microphone Boost in Windows 7? This is what I have written so far ... const IID IID_IDeviceTopology = __uuidof(IDeviceTopology); const IID IID_IPart = __uuidof(IPart); const IID IID_IAudioAutoGainControl = __uuidof(IAudioAutoGainControl); HRESULT hr = S_OK

Compile Medooze - Ubuntu 14.04

谁都会走 提交于 2019-12-11 20:09:13
问题 I`m trying to install Medooze but I faced with lots of problem! I followed step by step by this instruction http://www.medooze.com/products/media-mixer-server/installation.aspx most of them installed with out error until step 9. when I use "make" there are bunch of errors, I fixed many of them but when I trying to fix this one, I cant. /usr/local/src/medooze/mcu/src/gsm/gsm.h:34:32: fatal error: GSM3CircularBuffer.h: No such file or directory #include GSM3CircularBuffer.h> compilation

How can I determine which Windows process is the “audio session” governing the current process's output?

不打扰是莪最后的温柔 提交于 2019-12-11 15:46:15
问题 I happen to be using Python bindings here, but I suspect that the problem, and the eventual answer, are not Python-specific. On Windows 10, using Python bindings to Windows' Core Audio library, specifically via pycaw.AudioUtilities.GetAllSessions() , I can see that there is a session with name 'conhost.exe' and pid 11512, and by elementary guesswork/experimentation I can see that this is the session that (a) governs the audio for my current process and (b) corresponds to the "Console Window