Click here to Skip to main content
11,483,586 members (59,620 online)

Silverlight / WPF

 
QuestionWPF ComboBox Problem Pin
Kevin Marois10-Jul-13 20:13
memberKevin Marois10-Jul-13 20:13 
AnswerRe: WPF ComboBox Problem Pin
Richard Deeming11-Jul-13 2:58
professionalRichard Deeming11-Jul-13 2:58 
GeneralRe: WPF ComboBox Problem Pin
Kevin Marois11-Jul-13 18:48
memberKevin Marois11-Jul-13 18:48 
GeneralRe: WPF ComboBox Problem Pin
Kevin Marois19-Jul-13 17:27
memberKevin Marois19-Jul-13 17:27 
Questionhow to make an navigation title dropdownlist Pin
neodeaths10-Jul-13 10:45
memberneodeaths10-Jul-13 10:45 
AnswerRe: how to make an navigation title dropdownlist Pin
Mycroft Holmes10-Jul-13 13:44
professionalMycroft Holmes10-Jul-13 13:44 
QuestionAny Idea CFL in Silverlight? Pin
Tanmoy Mohish9-Jul-13 20:57
memberTanmoy Mohish9-Jul-13 20:57 
AnswerRe: Any Idea CFL in Silverlight? Pin
Mycroft Holmes9-Jul-13 22:10
professionalMycroft Holmes9-Jul-13 22:10 
GeneralRe: Any Idea CFL in Silverlight? Pin
Tanmoy Mohish9-Jul-13 22:38
memberTanmoy Mohish9-Jul-13 22:38 
GeneralRe: Any Idea CFL in Silverlight? Pin
Mycroft Holmes9-Jul-13 23:45
professionalMycroft Holmes9-Jul-13 23:45 
GeneralRe: Any Idea CFL in Silverlight? Pin
Tanmoy Mohish10-Jul-13 0:56
memberTanmoy Mohish10-Jul-13 0:56 
GeneralRe: Any Idea CFL in Silverlight? Pin
Mycroft Holmes10-Jul-13 2:06
professionalMycroft Holmes10-Jul-13 2:06 
AnswerRe: Any Idea CFL in Silverlight? Pin
Richard MacCutchan10-Jul-13 2:40
mvpRichard MacCutchan10-Jul-13 2:40 
Questionhow to use equalizer using naudio wpf Pin
Member 101119067-Jul-13 18:50
professionalMember 101119067-Jul-13 18:50 
hello

Google Translator will translate into this one. Please note.

I have to use SVL and Naudio.

I need to develop an equalizer.

Included SVL, but it does not seem to be making is completed.

In spite of the language barrier, and ask

Please help me....

[Fields]
        private static NAudioEngine instance;
        private static NAudioEngine instance2;
        private static NAudioEngine instance3;
        private readonly DispatcherTimer positionTimer = new DispatcherTimer(DispatcherPriority.ApplicationIdle);
        private readonly BackgroundWorker waveformGenerateWorker = new BackgroundWorker();
        private readonly int fftDataSize = (int)FFTDataSize.FFT2048;
        private bool disposed;
        private bool canPlay;
        private bool canPause;
        private bool canStop;
        private bool isPlaying;
        private bool inChannelTimerUpdate;
        private double channelLength;
        private double channelPosition;
        private bool inChannelSet;
        private IWavePlayer waveOutDevice = new DirectSoundOut(50);
        private WaveStream activeStream;
        private WaveChannel32 inputStream;
        private SampleAggregator sampleAggregator;
        private SampleAggregator waveformAggregator;
        private string pendingWaveformPath;        
        private float[] fullLevelData;
        private float[] waveformData;
        private TagLib.File fileTag;
        private TimeSpan repeatStart;
        private TimeSpan repeatStop;
        private bool inRepeatSet;
 
        private double volumeChange;
        private double volumeChange_Master;
 
        private bool allPlay;
        private bool allStop;
        private bool allPause;
 
        private double equalizerChange;
        private  EqualizerEffect m_eqEffect;
 

[Apply Equalizer]
if (waveOutDevice != null)
            {
                waveOutDevice.Pause();
                
              
                switch (i)
                {
                    case 1:
                        m_eqEffect.LoGainFactor.Value = (float)d;
                        m_eqEffect.LoDriveFactor.Value = (float)d;
                        break;
                    case 2:
                        m_eqEffect.MedGainFactor.Value = (float)d;
                        m_eqEffect.MedDriveFactor.Value = (float)d;
                        break;
                    case 3:
                        m_eqEffect.HiGainFactor.Value = (float)d;
                        m_eqEffect.HiDriveFactor.Value = (float)d;
                        break;
                }
                m_eqEffect.OnFactorChanges();
                waveOutDevice.Play();
                
            }

[File Open]
 if (System.IO.File.Exists(path))
            {
                try
                {
                    waveOutDevice= new DirectSoundOut(50);
                    
                    if (path.EndsWith(".wav"))
                    {
                        ActiveStream = new WaveFileReader(path);
                    }
                    else if (path.EndsWith(".mp3"))
                    {
                        ActiveStream = new Mp3FileReader(path);
                    }
                    else
                    {
                        throw new InvalidOperationException("Unsupported extension");
                    }
 
                    if (ActiveStream.WaveFormat.Encoding != WaveFormatEncoding.Pcm)
                    {
                        ActiveStream = WaveFormatConversionStream.CreatePcmStream(ActiveStream);
                        ActiveStream = new BlockAlignReductionStream(ActiveStream);
                    }
 
                    // Provide conversion to 16 bits if needed
                    if (ActiveStream.WaveFormat.BitsPerSample != 16)
                    {
                        var format = new WaveFormat(ActiveStream.WaveFormat.SampleRate,
                        16, ActiveStream.WaveFormat.Channels);
                        ActiveStream = new WaveFormatConversionStream(format, ActiveStream);
                    }
 
                    inputStream = new WaveChannel32(ActiveStream);
                    sampleAggregator = new SampleAggregator(fftDataSize);
                    inputStream.Sample += inputStream_Sample;
                    ChannelLength = inputStream.TotalTime.TotalSeconds;
                    FileTag = TagLib.File.Create(path);
                    GenerateWaveformData(path);
                    CanPlay = true;
                    inputStream.Volume = 0.5f;
                    waveOutDevice.Volume = 1f;
                    
                    m_eqEffect = new EqualizerEffect();
                    m_eqEffect.SampleRate = activeStream.WaveFormat.SampleRate;
                    m_eqEffect.LoDriveFactor.Value = 75;
                    m_eqEffect.LoGainFactor.Value = 0;
                    m_eqEffect.MedDriveFactor.Value = 40;
                    m_eqEffect.MedGainFactor.Value = 0;
                    m_eqEffect.HiDriveFactor.Value = 30;
                    m_eqEffect.HiGainFactor.Value = 0;
                    m_eqEffect.Init();
                    m_eqEffect.OnFactorChanges();
 
                    ActiveStream = new DSPEffectStream(inputStream, m_eqEffect);
                    waveOutDevice.Init(inputStream);
 
                }
                catch
                {
                    ActiveStream = null;
                    CanPlay = false;
                }
            }


Used 3 instance

Used IWavePlayer

Help me.....

Trouble apply anyhow ...
Question[SOLVED] WPF Printing in milimeters [modified] Pin
Saksida Bojan5-Jul-13 23:16
memberSaksida Bojan5-Jul-13 23:16 
SuggestionRe: WPF Printing in milimeters Pin
Amitosh S.M.7-Jul-13 22:18
memberAmitosh S.M.7-Jul-13 22:18 
GeneralRe: WPF Printing in milimeters Pin
Saksida Bojan8-Jul-13 0:59
memberSaksida Bojan8-Jul-13 0:59 
QuestionWhat is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Mohammed Hameed3-Jul-13 21:24
professionalMohammed Hameed3-Jul-13 21:24 
AnswerRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Pete O'Hanlon3-Jul-13 21:45
protectorPete O'Hanlon3-Jul-13 21:45 
GeneralRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Mohammed Hameed3-Jul-13 22:10
professionalMohammed Hameed3-Jul-13 22:10 
GeneralRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Pete O'Hanlon3-Jul-13 22:44
protectorPete O'Hanlon3-Jul-13 22:44 
GeneralRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Mohammed Hameed3-Jul-13 22:55
professionalMohammed Hameed3-Jul-13 22:55 
AnswerRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Richard MacCutchan3-Jul-13 22:12
mvpRichard MacCutchan3-Jul-13 22:12 
GeneralRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Mohammed Hameed3-Jul-13 22:20
professionalMohammed Hameed3-Jul-13 22:20 
GeneralRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Richard MacCutchan3-Jul-13 23:29
mvpRichard MacCutchan3-Jul-13 23:29 
AnswerRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Amitosh S.M.4-Jul-13 21:37
memberAmitosh S.M.4-Jul-13 21:37 
GeneralRe: What is the use of somefile.g.i.cs auto-generated file in Wpf? Pin
Mohammed Hameed4-Jul-13 22:03
professionalMohammed Hameed4-Jul-13 22:03 
QuestionCode first or Database First Pin
Hossein Khalaj3-Jul-13 19:50
memberHossein Khalaj3-Jul-13 19:50 
AnswerRe: Code first or Database First Pin
Mycroft Holmes3-Jul-13 20:43
professionalMycroft Holmes3-Jul-13 20:43 
Questionspeed up Silverlight project Pin
Member 91093873-Jul-13 0:15
memberMember 91093873-Jul-13 0:15 
AnswerRe: speed up Silverlight project Pin
Pete O'Hanlon3-Jul-13 0:28
protectorPete O'Hanlon3-Jul-13 0:28 
Questioncan we get audio buffer in mediaelement. Pin
brodcasting2-Jul-13 1:50
memberbrodcasting2-Jul-13 1:50 
QuestionDrawing Lines Dynamically Pin
velkumar_in1-Jul-13 0:44
membervelkumar_in1-Jul-13 0:44 
QuestionRe: Drawing Lines Dynamically Pin
Kenneth Haugland5-Jul-13 15:05
professionalKenneth Haugland5-Jul-13 15:05 
QuestionGridView click to load data Pin
maxRazar27-Jun-13 23:00
membermaxRazar27-Jun-13 23:00 
Questionhow to get audiometer level in mediaelement Pin
brodcasting27-Jun-13 20:13
memberbrodcasting27-Jun-13 20:13 
QuestionRe: how to get audiometer level in mediaelement Pin
Kenneth Haugland5-Jul-13 15:06
professionalKenneth Haugland5-Jul-13 15:06 
Questiondatagrid columns, ExpandoObject question Pin
BoydMills27-Jun-13 10:07
memberBoydMills27-Jun-13 10:07 
QuestionWpf doesnt recognize my xmlns for User Control Pin
tomr126-Jun-13 12:31
membertomr126-Jun-13 12:31 
AnswerRe: Wpf doesnt recognize my xmlns for User Control Pin
tomr126-Jun-13 18:48
membertomr126-Jun-13 18:48 
AnswerRe: Wpf doesnt recognize my xmlns for User Control Pin
Abhinav S26-Jun-13 19:31
mvpAbhinav S26-Jun-13 19:31 
GeneralRe: Wpf doesnt recognize my xmlns for User Control Pin
tomr127-Jun-13 9:20
membertomr127-Jun-13 9:20 
GeneralRe: Wpf doesnt recognize my xmlns for User Control Pin
Meshack Musundi3-Jul-13 2:02
mvpMeshack Musundi3-Jul-13 2:02 
Questionwindowmediasdk for silverlight Pin
brodcasting26-Jun-13 1:24
memberbrodcasting26-Jun-13 1:24 
QuestionDraging Grids in WPF [modified] Pin
rolaids25-Jun-13 17:06
memberrolaids25-Jun-13 17:06 
AnswerRe: Draging Grids in WPF Pin
sorawit amorn27-Jun-13 12:25
membersorawit amorn27-Jun-13 12:25 
GeneralRe: Draging Grids in WPF Pin
tomr11-Jul-13 16:44
membertomr11-Jul-13 16:44 
GeneralRe: Draging Grids in WPF Pin
sorawit amorn3-Jul-13 6:32
membersorawit amorn3-Jul-13 6:32 
AnswerRe: Draging Grids in WPF Pin
sorawit amorn3-Jul-13 6:33
membersorawit amorn3-Jul-13 6:33 
Question[SOLVED] WPF Combobox background color [modified] Pin
Saksida Bojan22-Jun-13 8:31
memberSaksida Bojan22-Jun-13 8:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid