|
|
Up |
|
|
  |
Author: jgmjgm
Date: Dec 24, 2008 19:19
hi all
i use directsound api renderering audio. in my project, i create a position
notify buffer, the buffer size is 76800 byte, and notiy size is 15360 byte
DSBUFFERDESC dsbd;
ZeroMemory( &dsbd, sizeof(DSBUFFERDESC) );
dsbd.dwSize = sizeof(DSBUFFERDESC);
dsbd.dwFlags = DSBCAPS_CTRLPOSITIONNOTIFY
|DSBCAPS_GETCURRENTPOSITION2
|DSBCAPS_GLOBALFOCUS ;
dsbd.dwBufferBytes = m_dwBufferSize;
dsbd.lpwfxFormat = &(m_pwfxInput->Format);
the first time playing a file, my project works ok, but when stop and
play the same file, IDirectSoundBuffer8::GetCurrentPosition return incorrect
positon, the value like following:
108, 292, 0
when the current position smaller than the last report position, i stop my
application, then play, the return posion like that:
236 244 4
|
| Show full article (1.26Kb) |
|
| |
no comments
|
|
  |
Author: Rick MuethingRick Muething
Date: Sep 18, 2008 09:05
I have what should be a simple problem but haven't been able to find a
solution.
I am using DirectX 9 to play a simple 16 bit mono sound file in a Sound card
modem application. The playback code is simple:
devSelectedPlaybackDevice.SetCooperativeLevel(Me.Handle,
CooperativeLevel.Priority)
bufPlayback = New SecondaryBuffer(Filename,
devSelectedPlaybackDevice)
bufPlayback.Volume = -5000 + 50 * intOutputLevel ' -5000=off,
0=full volume
bufPlayback.Play(0, BufferPlayFlags.Default)
All this works fine IF the application window is the active window. If the
application
Window is not the active window the sound card capture code (not shown)
continues to work fine but there is no playback from the sound card output.
This works the same way on several different sound cards (internal or
external USB). There is no exception thrown just no output from the sound
card. Once the window containing the application is made active again it
plays correctly.
|
| Show full article (1.17Kb) |
|
| |
3 Comments |
|
  |
Author: dhdh
Date: Sep 17, 2008 19:34
For example, I found " DivXa32.acm"...
Just curious how to install it on Windows so that ACM Wrapper filter can use
it...
Thanks!
|
| |
|
1 Comment |
|
  |
Author: Vibhor MahajanVibhor Mahajan
Date: Sep 17, 2008 04:30
Hello All,
I am using Vista OS.
1. Connect to Vista using RDP
2. Play WMA file in WMP.
3. Disconnect RDP session.
4. Reconnect RDP session.
5. A message box is displayed "An audio device was disconnected or
reconfigured. Verify that the audio device is connected, and then try to play
the item again."
No sound is heared untill file is played again.
Please tell the reason of above message and can we stop audio device
disconnection on RDP disconnection. This message does not comes when
connected to WinXP machine.
Is there any settings in Vista so that functionality is same as WinXP that
is no audio device disconnection.
Thanks in advance.
Vibhor
|
| |
|
no comments
|
|
  |
Author: samkol649samkol649
Date: Sep 12, 2008 14:34
Hi all,
I have posted similar question in directshow group, but since my
problem is related more to audio, I decided to post it here instead. I
do apologize if this makes some of you feel inconvenient.
With the help from many good guys in directshow group, I know how to
write a custom source filter that I can use internally (without
register DLL).
I am developing an application for Windows Mobile 5 Pocket PC using
DirectShow.
I have a question:
I create a custom source filter based on IBaseFilter and
IBaseOutputPin. I can initialize the Graph Builder Manager and add the
filter. However, when I call IGraphBuilder::Render() on my output pin,
the application never returns from the function. Using debugger, I
realize that the application keeps on calling
IBaseOutputPin::GetMediaType(). Below is my graph diagram:
////// Audio Source Stream --> Source Filter --> Audio
Renderer //////
|
| Show full article (2.18Kb) |
|
4 Comments |
|
  |
Author: BobBob
Date: Sep 8, 2008 19:29
I need to list all available filters on a system, primarily for access
to audio plugins (like Reverb, Compressors, etc)
ICreateDevEnum obviously lists devices in certain categories, but
audio plugins do not seem to have a relevant category.
IFilterMapper2 can supposedly be used but I haven't seen any managed
code samples (if they exist).
1: Has anyone seen managed code using IFilterMapper2?
2: Are there other ways of listing audio plugins?
|
| |
|
2 Comments |
|
  |
|
|
  |
Author: sdgvfwesdgvfwe
Date: Sep 6, 2008 19:47
commander cialis en France en ligne aucune prescription dans commande cialis corpus cialis suisse par email cialis au rabais en ligne sans prescription cialis canada Generique Inde
|
| Show full article (2.58Kb) |
|
no comments
|
|
  |
Author: sdgvfwesdgvfwe
Date: Sep 6, 2008 09:29
rx affiliates in Alliance rx affiliate programs rx affiliate forum pharmaceutical affiliate drug affiliate program
+++ BEST PHARMACY AFFILIATE PROGRAM +++ BEST PHARMACY AFFILIATE PROGRAM +++
+
SPECIAL OFFER FOR NEW AFFILIATES.
GENERATE SALES OF $1000 ON YOUR FIRST MONTH AND GET $450 COMMISSIONS!
+
+
http://jhku...
|
| Show full article (2.75Kb) |
|
no comments
|
|
  |
|
|
  |
Author: BobBob
Date: Sep 6, 2008 00:07
I'd like to find samples of code for capturing audio (from mic or
input channel) to a .WAV file.
It would be a plus to find this in C#, using the DirectShow.net lib.
Anything?
|
| |
|
4 Comments |
|
|
|
|