24 May '13 - 00:19 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  Developments / BASS / Re: Tag question äöüß on: 2 Dec '10 - 09:28
Thank you very much for your help! I guess I will figure it out...

Martin
ReplyReply Reply with quoteQuote
2  Developments / BASS / Re: Tag question äöüß on: 30 Nov '10 - 09:05
Thank you for your reply!

But if I see it correctly you are using in ProppFrexxTagger the same taglibsharp-dll and one is able to use the Umlaut-characters... How do you do it if I may ask...

Or does anybody know a c#Library with which I can write the BEXT-Tags?

Thanks!
martin
ReplyReply Reply with quoteQuote
3  Developments / BASS / Tag question äöüß on: 29 Nov '10 - 20:09
Hi,
I know, this does not have directly to do with the BASS-Library; but hopefully anybody could help me.

Seemingly I have some kind of String-Encoding-Problem. But I really do not know what to do.

I am using in a bass.net-Application (c#) the taglibsharp-Library to write BWAV-Tags -- f.e. the BWAV-Description. But if I want to write an Umlaut, f.e. "ä", in the Description-Tag it appears an "?" when I read out the tag by BASS.Tag or some other Tag-Reader. I've read so many forumposts but I cannot find a solution...

Here's my code... Somebody could help?
TagLib.File tagfile = TagLib.File.Create(@"D:\1.wav");
                            TagLib.Riff.BextTag bexttag = (TagLib.Riff.BextTag)tagfile.GetTag(TagLib.TagTypes.RiffBext, true);

                            bexttag.BextOriginator = "Näsha";
                            bexttag.BextOriginatorReference = "Nisha";
                            string tempbeschreibung = "ä ö ü Ä Ö Ü ß";
                             //tempbeschreibung = tempbeschreibung.Replace("ä", "ae");
                            //tempbeschreibung = tempbeschreibung.Replace("Ä", "Ae");
                            //tempbeschreibung = tempbeschreibung.Replace("ö", "oee");
                            //tempbeschreibung = tempbeschreibung.Replace("Ö", "Oe");
                            //tempbeschreibung = tempbeschreibung.Replace("ü", "ue");
                            //tempbeschreibung = tempbeschreibung.Replace("Ü", "Ue");
                            //tempbeschreibung = tempbeschreibung.Replace("ß", "ss");

                            string[] tagdescription = new string[] { tempbeschreibung };
                            bexttag.BextDescription = tagdescription;

                            tagfile.Tag.Track = Convert.ToUInt32(temptrack);


                            tagfile.Save();
                            tagfile.Dispose();

If I read out the BWAV-Description-Tag I get back: "? ? ? ? ? ? ss"...

Thanks a lot!

Martin
ReplyReply Reply with quoteQuote
4  Developments / BASS / Re: BASSWASAPI beta on: 29 May '10 - 08:07
Hi,
firstly thank you very much for this great addon!

What is the easiest way to filter out all input devices and display only the playback devices while using BassWasapi.BASS_WASAPI_GetDeviceInfo?

The other way round it is easy, but of course nearly all playback devices are at the same time input devices as well...

Thank you!
Martin
ReplyReply Reply with quoteQuote
5  Developments / BASS / Re: Analyze (Spectrum, Wave, VUMeter) on: 11 Feb '10 - 15:19
Would also be interested in using this with VS C#...  Any news?
ReplyReply Reply with quoteQuote
6  Developments / BASS / Write BEXT component on: 6 Feb '10 - 14:51
Hi there,
I really appreciate the support of BEXT-reading in the BASS-Library.
Does anybody know a (freeware?) component that I could use under VisualC# to write BEXT-tags to broadcast-wave-files?

Thank you!
martin
ReplyReply Reply with quoteQuote
7  Developments / BASS / Re: Rewire Support could be yours on: 16 Mar '09 - 11:03
any news about this?

regards
martin
ReplyReply Reply with quoteQuote
8  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 12 Feb '09 - 20:10
it is interesting - I've built a new project which does quite the same and in this case it works. What could i have done (probably in the project preferences) that the old one does not work? hm.
but seemingly I am the only one who has this problem.
I am using the UserFolder, too - this means there should be no security issue...

danke dir vielmals!

martin
ReplyReply Reply with quoteQuote
9  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 12 Feb '09 - 19:43
That's exactly the way I am doing this, too...
Are you using Vista or XP? Because I can remember, it worked under XP, but now under Vista 32 it doesn't...

I'm sorry to make those troubles...
ReplyReply Reply with quoteQuote
10  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 12 Feb '09 - 16:07
first of all thank you for checking!

I would be really happy if it would have been such an mistake of mine... but unfortunately it still does not work...

The thing is: If the string "datei" is a mp3-file (and therefore this mp3-file is going to be opened), then bass opens and plays this file in any case (debug or published outside of visual studio) -- this means it has to do something with the basswma-plugin... and i really cannot find out what.

martin
ReplyReply Reply with quoteQuote
11  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 10 Feb '09 - 14:57
If I am doing what radio42 says, then i am getting the exception i wrote...

I am uploading a rar-file called VisualStudio2008WMAProblemnew.rar to the imcoming folder of your ftp-server. this is my visual studio project. perhaps you could have a look.

and it's the same with all wma-files... i included my 1.wma...

really: thank you very much for your effort and all the answers!

martin

p.s. please note, that i am using vista32...
ReplyReply Reply with quoteQuote
12  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 10 Feb '09 - 14:29
well, I am using the publishing-feature of VisualStudio... with no signing. what could i do wrong here?

I found out, that if I am unchecking "enable the visual studio hosting process" under "Debug", the app does not work  via the F5-button (then it reacts like i have published)...
ReplyReply Reply with quoteQuote
13  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 10 Feb '09 - 13:56
            string datei = @"c:\1.wma";
            _stream = Bass.BASS_StreamCreateFile(datei, 0, 0, BASSFlag.BASS_DEFAULT);
            MessageBox.Show(_stream.ToString());
            MessageBox.Show(Bass.BASS_ErrorGetCode().ToString());
            Bass.BASS_ChannelPlay(_stream, false);
            MessageBox.Show(Bass.BASS_ErrorGetCode().ToString());
            BASS_CHANNELINFO info = new BASS_CHANNELINFO();
            if (Bass.BASS_ChannelGetInfo(_stream, info))
            {
                // display the channel info..
                this.labelControl1.Text = String.Format("Type={0}, Channels={1}, OrigRes={2}", Utils.BASSChannelTypeToString(info.ctype), info.chans, info.origres);
            }

the value of MessageBox.Show(_stream.ToString());   is: 0
ReplyReply Reply with quoteQuote
14  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 10 Feb '09 - 13:52
the "error-code" directly after StreamCreateFile is: BASS_OK....

really strange.
ReplyReply Reply with quoteQuote
15  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 10 Feb '09 - 13:47
man, you are really fast!
            Bass.BASS_ChannelPlay(_stream, false);
            MessageBox.Show(Bass.BASS_ErrorGetCode().ToString());

the error code after ChannelPlay is: BASS_ERROR_HANDLE

thank you!
martin


ReplyReply Reply with quoteQuote
16  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 10 Feb '09 - 12:20
Hi -- first of all thank for your answers!

I changed the code according to your advice:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Un4seen.Bass;
using Un4seen.Bass.AddOn.Wma;

namespace WindowsFormsApplication3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private int _stream;

        private void Form1_Load(object sender, EventArgs e)
        {
            BassNet.Registration("**");
            // BASS Multimedia initialisieren
            if (
                !Bass.BASS_Init(-1, 44100,
                                BASSInit.BASS_DEVICE_DEFAULT, Handle, null))
            {
                MessageBox.Show("Bass-Initialisierung fehlgeschlagen.");
            }
            int _wmaPlugIn = Bass.BASS_PluginLoad("basswma.dll");
            BASS_PLUGININFO pluginInfo = Bass.BASS_PluginGetInfo(_wmaPlugIn);
            MessageBox.Show(_wmaPlugIn.ToString());
            MessageBox.Show(this, String.Format("{0}\nName={1}\nExtensions={2}", "basswma.dll", Utils.BASSAddOnGetSupportedFileName("basswma.dll"), Utils.BASSAddOnGetSupportedFileExtensions("basswma.dll")));
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
           
           
            string datei = @"c:\1.wma";
            _stream = Bass.BASS_StreamCreateFile(datei, 0, 0, BASSFlag.BASS_DEFAULT);
            MessageBox.Show(Bass.BASS_ErrorGetCode().ToString());
            Bass.BASS_ChannelPlay(_stream, false);

            BASS_CHANNELINFO info = new BASS_CHANNELINFO();
            if (Bass.BASS_ChannelGetInfo(_stream, info))
            {
                // display the channel info..
                this.labelControl1.Text = String.Format("Type={0}, Channels={1}, OrigRes={2}", Utils.BASSChannelTypeToString(info.ctype), info.chans, info.origres);
            }

        }

    }
}


and here is what i get:

when debugging
everything is fine:
from:
MessageBox.Show(_wmaPlugIn.ToString());
i get the number 269484032

from:
MessageBox.Show(this, String.Format("{0}\nName={1}\nExtensions={2}", "basswma.dll", Utils.BASSAddOnGetSupportedFileName("basswma.dll"), Utils.BASSAddOnGetSupportedFileExtensions("basswma.dll")));
i get "basswma.dll Name=Windows Media Audio Entensions=*.wma;*.wmv

when clicking the button i get "BASS_OK" and the label shows the correct type, channels and bitrate and is playing...


when I am publishing
from:
MessageBox.Show(_wmaPlugIn.ToString());
i get the number 269484032

from:
MessageBox.Show(this, String.Format("{0}\nName={1}\nExtensions={2}", "basswma.dll", Utils.BASSAddOnGetSupportedFileName("basswma.dll"), Utils.BASSAddOnGetSupportedFileExtensions("basswma.dll")));
i get "basswma.dll Name=Windows Media Audio Entensions=*.wma;*.wmv

when clicking the button i get "BASS_OK" and the label shows nothing and the stream is not playing... when i am clicking a second time on the button then i get "BASS_ERROR_HANLDE".
Of course the bass.dll and the basswma.dll (and Bass.Net.dll) are in the application folder...



Hope this helps!
Thank you very much
martin
ReplyReply Reply with quoteQuote
17  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 9 Feb '09 - 10:49
even if I change the order of initbass and loading the plugin, it does not work...
ReplyReply Reply with quoteQuote
18  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 8 Feb '09 - 09:39
Hi!

I just tried it with a very simple code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Un4seen.Bass;

namespace WindowsFormsApplication3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private int _stream;

        private void Form1_Load(object sender, EventArgs e)
        {
            BassNet.Registration****************
            Bass.BASS_PluginLoad("basswma.dll");
            // BASS Multimedia initialisieren
            if (
                !Bass.BASS_Init(1, 48000,
                                BASSInit.BASS_DEVICE_DEFAULT, Handle, null))
            {
                MessageBox.Show("Bass-Initialisierung fehlgeschlagen");
            }
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
           
           
            string datei = @"c:\1.wma";
            _stream = Bass.BASS_StreamCreateFile(datei, 0, 0, BASSFlag.BASS_SAMPLE_FLOAT | BASSFlag.BASS_STREAM_PRESCAN);
            MessageBox.Show(_stream.ToString());
            MessageBox.Show(Bass.BASS_ErrorGetCode().ToString());
            Bass.BASS_ChannelPlay(_stream, false);
        }

    }
}

but it does not work when publishing or building-- the stream is 0 and the error code is: "BASS_ERROR_HANDLE"...
it still works when debugging under visual studio 2008 (vista)...

Thank you for your answer, radio42!
martin
ReplyReply Reply with quoteQuote
19  Developments / BASS / Re: Problem with Visual Studio 2008 and basswma on: 6 Feb '09 - 23:09
hm -- i don't know... I don't get any error messages. Just the stream is empty...
but thanks for answering!
ReplyReply Reply with quoteQuote
20  Developments / BASS / Problem with Visual Studio 2008 and basswma on: 6 Feb '09 - 22:29
Hello!

I have a strange problem: I am writing an application with Visual Studio 2008 C# with Bass.net (Vista 32) which plays wma-files via the basswma-plugin.
Everything is fine if I'm running my application via the F5-Button under Visual Studio (debug mode). If I am publishing the application and starting it without Visual Studio, the basswma-plugin (only this, all the others work!) does not create a stream (_stream.toString() = 0). I am not posting any code, because it is a little bit complex and it works as I said during debugging under Visual Studio...
Anybody any ideas?

Thanks in advance
martin

edit: of course I am using all the latest pluginversions...
ReplyReply Reply with quoteQuote
Pages: [1] 2
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines