21 May '13 - 22:15 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 ... 25 26 [27] 28 29 ... 60
  Reply  |  Print  
Author Topic: BASS.NET API 2.4.10.1  (Read 368536 times)
radio42
Posts: 4012


« Reply #520 on: 8 Sep '08 - 13:06 »
Reply with quoteQuote

So does this happen with all source files or only with some?
It seems, that I am unable to reproduce it here - as here all is working fine.
Which version of twoLame are you using?

Quote
i think you have forget many source code in Bass.net API , please review again.
I don't think, that there is any source code missing in the BASS.NET API.
So if you have any trouble with it please be exact and precise and tell me what you actually want or what you think is missing!
Logged
www.fullmm.com
Posts: 141


« Reply #521 on: 8 Sep '08 - 13:13 »
Reply with quoteQuote

Quote
Which version of twoLame are you using?
i use twolame.exe encoder from www.free-codec.com.
Logged
radio42
Posts: 4012


« Reply #522 on: 8 Sep '08 - 14:00 »
Reply with quoteQuote

On this site I can not find any "twolame" binary!
So maybe you should use the official build from here: http://www.rarewares.org/mp3-others.php  (as noted in the docs).

This is: twoLame 0.3.12b Release

It is a custom version that does NOT use libsndfile for input. It uses its own native input routines. It will accept 8, 16, 24, 32 bit integer and float wave files as input and will also accept input from 'stdin' - which was really the point in doing it.

I guess the version you are using doesn't support input from STDIN as it will certainly be using libsndfile for input.
I personally requested the change on rerewares.org in order to be able to use twoLame with BASS!
Logged
www.fullmm.com
Posts: 141


« Reply #523 on: 8 Sep '08 - 14:15 »
Reply with quoteQuote

Thank You very much , Worked  Tongue Smiley Smiley
Sorry.
Logged
ken
Posts: 630


« Reply #524 on: 9 Sep '08 - 15:32 »
Reply with quoteQuote

I wave a wired BASSasio / BASSmixer problem.


** Solved...
« Last Edit: 9 Sep '08 - 15:46 by ken » Logged
radio42
Posts: 4012


« Reply #525 on: 9 Sep '08 - 15:52 »
Reply with quoteQuote

OK ;-)
Logged
ken
Posts: 630


« Reply #526 on: 9 Sep '08 - 17:57 »
Reply with quoteQuote

Bernd, maybe you know.

Does my C# app conume more memory if I load a audiofile into a MemoryStream and play it with "Bass.BASS_StreamCreateFileUser", compared to just play the audiofile with regualr "Bass.BASS_StreamCreateFile".

I'm experimenting with encrypt my audiofiles (wish works fine) and therefore I need to use "Bass.BASS_StreamCreateFileUser", otherwise I have to decrypt my audio to disk first an then hole idëa is lost... With "Bass.BASS_StreamCreateFileUser" I can decrypt the audio a memorystream.

/Ken
Logged
ken
Posts: 630


« Reply #527 on: 9 Sep '08 - 18:37 »
Reply with quoteQuote

I run into a dilema with my audio in a MemoryStream.

How do I draw I WaveForm. (normaly I do it before I encrypt my audio, but sometimes I need to redraw the WaveForm)

WF2 = new WaveForm(FileName, new WAVEFORMPROC(MyWaveFormCallback), null);

/Ken

Logged
radio42
Posts: 4012


« Reply #528 on: 9 Sep '08 - 20:26 »
Reply with quoteQuote

So I guess a MemoryStreams almost consumes as many bytes more than a regular stream as the size of the memory block needed to keep the file in memory ;-)
However, I guess unless you have to load many streams into memory in parallel this shouldn't be a huge problem.

Regarding the WaveForm:
As you have already loaded the file into memory, you might create a second decoding stream handle.
You can then simply use an empty filename in the constructor and the call the RenderStart method, which takes an already prepared decoding stream handle to render the waveform.
Logged
ken
Posts: 630


« Reply #529 on: 9 Sep '08 - 21:57 »
Reply with quoteQuote

Regarding the WaveForm:
As you have already loaded the file into memory, you might create a second decoding stream handle.
You can then simply use an empty filename in the constructor and the call the RenderStart method, which takes an already prepared decoding stream handle to render the waveform.

I hade to make a new "BASS_StreamCreateFileUser" with decode, then it worked just fine.

Thanks!
Logged
radio42
Posts: 4012


« Reply #530 on: 10 Sep '08 - 12:56 »
Reply with quoteQuote

10.09.2008: Version 2.4.2.0 is out.

- BASS: updated to support v2.4.2.0
- BASSenc: updated to support v2.4.2.0
- BASS_ADX: added support for v2.4.0.0
- BassVideo: updated to support v2.4.1.2
- General:
  - AddOn.Tags: WAV BEXT tag reading added
  - AddOn.Tags: tagType field added to the TAG_INFO structure

Note: BASS and BASSenc v2.4.2.0 will probably be release next week, so this BASS.NET release already contains these future versions, as I will not be available for the next 4 weeks - as I am on holiday ;-)
That's why I decided to release this BASS.NET version already now.
However, this BASS.NET version should also work just fine with all current versions of BASS and its add-ons!
Logged
ken
Posts: 630


« Reply #531 on: 18 Sep '08 - 18:34 »
Reply with quoteQuote

How can I send a stream (like the LiveFX) eample over a local network with low latency. I don't want to use WMA, Shoutcast or like that. I need lower delay.

sure on the "reciver" I use BASS_StreamCreateFileUser, but how do I get the bytes and safly send them over TCP/IP?

Logged
ospring
Posts: 2


« Reply #532 on: 6 Oct '08 - 10:25 »
Reply with quoteQuote

Hi,

I have a mass storage application that use BASS to recognize sound formats (sample, duration, frequency...) and cuts PCM files in multiples sub files. This application is written in .NET 1.1 and is pretty big. I have used BASS.net 2.3 to use bass 2.3 api. But I have experienced some problems with the 2.3 version on some wave files (with special chunks) that seems to be solved in 2.4 bass lib.
However you have stopped .NET 1.1 support for the 2.4 BASS.NET assembly. So I am stuck and can't easily change to the 2.4 BASS lib.
I cannot reasonably upgrade my application to 2.0 framework because my application is huge and it will take too much time.

Do you have any solution that will help using 2.4 bass lib with .NET 1.1 framework ? I do not use many BASS functions / structures :

BASS_Init
BASS_INFO
BASS_PluginLoad
BASS_StreamCreateFile
BASS_ErrorGetCode()
BASS_ChannelBytes2Seconds
BASS_ChannelSeconds2Bytes
BASS_ChannelIsActive
BASS_ChannelGetData
BASS_ChannelGetLength
BASS_ChannelGetPosition
BASS_ChannelGetData
BASS_CHANNELINFO
BASS_StreamGetFilePosition
BASS_ChannelGetInfo
BASS_ChannelGetAttributes

So maybe using the bass.net 2.3 source code for .NET 1.1 could be changed to use the new 2.4 API... Any other ideas ?

Thank you for your help

O_Spring


Logged
field33P
Posts: 17


« Reply #533 on: 15 Oct '08 - 10:20 »
Reply with quoteQuote

I have built a program that uses 2 decks, but if deck 1 has played and when I want to play deck 2, it can't play. This also happens when I try it with deck 1.
The error is BASS_ERROR_ALREADY.

my code (VB.NET):
Loading Deck 1:
        OpenFileDialog1.ShowDialog()
        If (OpenFileDialog1.FileName = "") Then

        Else
            If Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero, Nothing) Then
                ' create a stream channel from a file
                deck1 = Bass.BASS_StreamCreateFile(OpenFileDialog1.FileName, 0, 0, BASSFlag.BASS_DEFAULT)
                Label1.Text = "DECK 1 GELADEN"
            End If
        End If
Loading deck 2:
        OpenFileDialog1.ShowDialog()
        If (OpenFileDialog1.FileName = "") Then

        Else
            If Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero, Nothing) Then
                ' create a stream channel from a file
                deck2 = Bass.BASS_StreamCreateFile(OpenFileDialog1.FileName, 0, 0, BASSFlag.BASS_DEFAULT)
                Label2.Text = "DECK 2 GELADEN"

            End If
        End If
Play Deck 1:
        If deck1 <> 0 Then
            Bass.BASS_ChannelPlay(deck1, False)
            Label1.Text = "DECK 1 ACTIEF"
        Else
            Label1.Text = "DECK 1 KAN NIET AFSPELEN"
        End If
Play Deck 2:
        If deck2 <> 0 Then
            Bass.BASS_ChannelPlay(deck2, False)
            Label2.Text = "DECK 2 ACTIEF"
        Else
            Label2.Text = "DECK 2 KAN NIET AFSPELEN"
            MsgBox("BASS retourneerde: " + Bass.BASS_ErrorGetCode().ToString())
        End If
Is there something wrong with my code?
Logged
Chris
Posts: 1507


« Reply #534 on: 15 Oct '08 - 10:27 »
Reply with quoteQuote

Hi
 yep.....there is a error

on formCreate
  Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero, Nothing)

onform destroy
  Bass.Bass_Free()

Chris
Logged
radio42
Posts: 4012


« Reply #535 on: 15 Oct '08 - 10:47 »
Reply with quoteQuote

As Chris already mentioned, you should not initialize BASS twice for the same output device.
In your code you are getting the error code, because BASS was already initialized ;-)
Logged
field33P
Posts: 17


« Reply #536 on: 15 Oct '08 - 10:59 »
Reply with quoteQuote

Hi
 yep.....there is a error

on formCreate
  Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero, Nothing)

onform destroy
  Bass.Bass_Free()

Chris
Thanks for helping me out. I'm going to patch this.
Logged
ken
Posts: 630


« Reply #537 on: 20 Oct '08 - 17:19 »
Reply with quoteQuote

Bernd,

Is there a way to "GetCuePoints" from a audiofile without rendering the waveform. I need to speed it up and have no need for a waveform in this case.  I just nee "Start" and "End" positions.


/Ken
Logged
radio42
Posts: 4012


« Reply #538 on: 20 Oct '08 - 17:35 »
Reply with quoteQuote

Yepp,
In 2.4.x I added a new methof to the "Utils" namespace called: "DetectCuePoints" - guess that's what you are looking for ;-)
Logged
ken
Posts: 630


« Reply #539 on: 20 Oct '08 - 17:50 »
Reply with quoteQuote

Yepp,
In 2.4.x I added a new methof to the "Utils" namespace called: "DetectCuePoints" - guess that's what you are looking for ;-)

Sweet! Works great, and I get the cue's in seconds, fantastic!

Logged
Pages: 1 ... 25 26 [27] 28 29 ... 60
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines