Show Posts
|
|
Pages: 1 [2] 3
|
|
22
|
Developments / BASS / Difference between BASS_CONFIG_FLOATDSP and BASS_SAMPLE_FLOAT
|
on: 12 Jul '07 - 19:22
|
Hi, What is the difference between BASS_CONFIG_FLOATDSP and BASS_SAMPLE_FLOAT, really? If I use BASS_SAMPLE_FLOAT when creating a stream, do I need to use BASS_CONFIG_FLOATDSP also to get it in 32bit floatsamples in a DSP proc? Or is it enough to use only BASS_CONFIG_FLOATDSP to get all the streams i create in order to get it in 32bit floatsamples? I'm a bit confused 
|
Reply
Quote
|
|
|
25
|
Developments / BASS / Using Compressor with float
|
on: 2 May '07 - 11:30
|
Hi again! If you use BASS_ChannelSetFX with the compressorpart on a decodingchannel created with floatingpointthingy, and the value exceeds 1.0, does it just clip everything above 1.0 or does it compute WITH the value over 1.0? If you convert from float to int isnt it so that 1.0 = 32768? And btw....Ian you are doing a wonderful job! 
|
Reply
Quote
|
|
|
26
|
Developments / BASS / BASS_RecordStart with floatingpoint
|
on: 1 May '07 - 01:45
|
Hi I use VB. About BASS_RecordStart and using the BASS_SAMPLE_FLOAT flag it tells you that you want to use floatingpoint-data. If you chose to use RECORDPROC you will find a brief explanation like this: buffer Buffer containing the recorded sample data. The sample data is in standard Windows PCM format - 8-bit samples are unsigned, 16-bit samples are signed. What is correct? Where did the floatingpoint-data go? Just forgot to update the info?  And if you don't use RECORDPROC, does it still use floatingpoint-data when using BASS_ChannelGetData? 
|
Reply
Quote
|
|
|
27
|
Developments / BASS / Priority setting in BASS_ChannelSetFX?
|
on: 1 Dec '06 - 11:58
|
|
The priority setting in BASS_ChannelSetFX and BASS_ChannelSetDSP.
The "priority" setting in those two above, is it local for each stream or global for every stream you create?
Let's say that you have 2 streamhandles, stream1 and stream2
and you use BASS_ChannelSetDSP for both of them with different priority. Do they affect eachother or is the priority order not affected with those two?
|
Reply
Quote
|
|
|
29
|
Developments / BASS / Re: How to feed data to a decoding stream?
|
on: 25 Nov '06 - 19:34
|
It doesn't work! '-------------------------------------------------------------------------------------------------- 'This is from a creation procedure Dim LPFS As BASS_FX_DSPLPF ChanLpf = BASS_StreamCreate(44100, 2, BASS_STREAM_DECODE, 0, 0)
Call BASS_FX_DSP_Set(ChanLpf, BASS_FX_DSPFX_LPF, 5) Call BASS_FX_DSP_GetParameters(ChanLpf, BASS_FX_DSPFX_LPF, LPFS) LPFS.fCutOffFreq = 200 LPFS.fResonance = 1 LPFS.lFreq = 44100 Call BASS_FX_DSP_SetParameters(ChanLpf, BASS_FX_DSPFX_LPF, LPFS)
'The above gives no errors. '--------------------------------------------------------------------------------------------------
'This is a DSP procedure Public Sub CopyBassDSP(ByVal handle As Long, ByVal channel As Long, ByVal buffer As Long, ByVal length As Long, ByVal user As Long)
'm_SoundBufferComp has a pointer to a buffer created earlier Call CopyMemory(ByVal m_SoundBufferComp, ByVal buffer, length) BASS_ChannelGetData ChanLpf, ByVal m_SoundBufferComp, length
End Sub
Bass_ChannelGetData returns error 5 which means Invalid Handle. Why?
|
Reply
Quote
|
|
|
30
|
Developments / BASS / Re: How to feed data to a decoding stream?
|
on: 24 Nov '06 - 17:54
|
So if I understood correctly it's something like this:
DummyChan = BASS_StreamCreate(44100, 2, BASS_STREAM_DECODE, 0,0) 'Then applying any DSP/FX effects that i want for that stream.
Dim bBuf() as Byte, lLen as Long
'Chan1 is another stream from wich I get the original data. lLen = BASS_ChannelGetData(Chan1, 0, BASS_DATA_AVAILABLE)
Redim Preserve bBuf(lLen - 1) as Byte
lLen = BASS_ChannelGetData(Chan1, bBuf(0), lLen)
lLen = BASS_ChannelGetData(DummyChan, bBuf(0), lLen)
'And now bBuf contains the applied DSP/FX effects i chosed for the dummystream
Correct?
|
Reply
Quote
|
|
|
31
|
Developments / BASS / How to feed data to a decoding stream?
|
on: 24 Nov '06 - 10:28
|
|
It feels like i've searched the whole forum with no result hehe.
All the code is in VB.
I want to feed data to a stream created with BASS_StreamCreate(44100, 2, BASS_STREAM_DECODE, 0, 0). It's a dummy encoding stream.
"proc The user defined stream writing function... NULL = "dummy" stream. "
So how to feed data to that stream without any *proc?
What im trying to acomplish is that when I get samples from a recording chan I want to extract only the lowest frequencys (lowpass filter) and put them in a special buffer afterwards and at the same time keep the original samples untouched from the recording chan.
Im using BASS_FX_DSP_Set on a dummy encoding stream to get the lowpassfilter. What I don't understand is how to feed the samples into that stream?
I've looked at BASS_ChannelGetData and somehow that seems magical to me? I know how to get samples but can you also feed samples with that command?
|
Reply
Quote
|
|
|
33
|
Developments / BASS / How to get a Mp3 source playing?
|
on: 1 Oct '06 - 03:46
|
|
Is it possible to play a mp3-source with BASS? Lets say that I want to act as a shoutcast server with the possibility to play the stream. Winamp is connecting to my progg. My progg takes the mp3stream from winamp. I want to play that stream DIRECTLY as it comes. Is that possible with BASS? And if so, how do I use it?
I have looked at the manual but I can't find anything for that? Only thing i find with this type of function is when only taking PCM samples in 8 bit, 16 bit or 32 bit (float) samples.
|
Reply
Quote
|
|
|
34
|
Developments / BASS / Re:one main buffer?
|
on: 10 Jun '04 - 09:26
|
Easy...this is the formula: First of all, make sure you have the same amount of samples from each channel in 2 different buffers. Now, go sample by sample, add them together, and divide by 2, then put it into a final buffer. Example... For i = 0 To BufferSize - 1 FinalBuffer[i] = (Buffer1[i] + Buffer2[i]) / 2 Next i
Tnx...I've been thinking of that formula all night now...maybe im stupid but if you consider this: buffer2 doesnt play any sound...it contains silence (like a muted mic) or almost silence just a weak sound. That way the sound in buffer1 changes volume to only half that's expected. Isn't that correct? Or am I cycling in my bathtub having completely wrong? 
|
Reply
Quote
|
|
|
35
|
Developments / BASS / Re:one main buffer?
|
on: 9 Jun '04 - 15:09
|
As mentioned above, you could use a simple DSP function for the volume. Pitch changes are more complicated though, and will require some resampling (ie. changing the sample rate of the data).
That's not correct. You can use BASS_ChannelSetFX to apply FX to a decoding channel, just like you would with a "normal" channel.
Yeah I manage to fix a volume for every channel. Oh and sorry ofcourse setfx works on a decoding channel...I got to many things inside my little head right now  And promise that you don't laugh hehe...I'm using VB for this together with written dll's in PowerBasic and windows API calls (I'm planning to do it in VC++ later). Otherwise it get's to slow. But one thing I don't know how to fix is the merge of the channels to one main buffer cause I can't just add the channel samples together right? I'm working with integer samples and not FFT cause I haven't found a proc that transform FFT to samples (I need integer values at the end).
|
Reply
Quote
|
|
|
36
|
Developments / BASS / one main buffer?
|
on: 8 Jun '04 - 14:26
|
|
I have a qs here...im using bass_channelsetdsp to catch the sound from the playing channel and put the sound into my own buffer. It works great and the FX I aplied to that channel comes with it. But not the pitch (frequency change) and nor the volumelevel aplied to that channel. How can I managed to get that into my buffer? Using bass_channelgetdata doesnt work either cause you don't get the volumechange. Using BASS_SAMPLE_DECODE works even worse cause you can't aply FX to that channel.
The reason for this is that I want to 'record' several chans WITH all the effects that comes with it and put them into one main buffer. But it seems there isn't any simple resolution for that. And I can't use the 'what you hear' option to record the sound cause im using that for the mic...
/Thomas
|
Reply
Quote
|
|
|
37
|
Developments / BASS / Re:No latency?
|
on: 30 May '04 - 15:38
|
I'm not familiar with "OctiMax". What is it, and what does it use for output, eg. DirectSound, Waveout, ASIO? Btw, I'm not sure what a "drunken monkey" sounds like  ... maybe you're referring to echo of the original sound and effected sound? If so, you should open the Windows mixer and mute the microphone in the playback mixer (so that you only hear the effected sound). Octimax is a radio studio program för broadcasting. And I don't know if it's using DirectSound for every effects it applies. The strange thing it has no latency whatsoever when broadcasting/streaming. And when streaming no sound is heard except for those playing in octimax. So you can play everything on your computer and it's not heard in the stream, except for those sounds octimax is playing. It even has a pfl so that wont come into the stream. And I don't know what it's using, if it's ASIO or not but it works on (almost) all soundcards. And about the drunken monkey thing hehe...try your example that I referred to. When you hear your self with that kind of latency you will automatically try to talk slowly to let the recorded sound catch up with you...well it's more like a monkey talking in slowmotion 
|
Reply
Quote
|
|
|
40
|
Developments / BASS / No latency?
|
on: 29 May '04 - 18:22
|
|
Im trying to set compressor for the microphone sound and I must first record it and then add the effect. But when talking in real time it's a delay which makes me sound like a drunken monkey when talking hehe. I have tried to experiment to get as small latency as possible but the smallest so far is about 48ms.
Now the question is, there is a program called octimax which somehow manages to set the effects at once without any latency. How is that possible?
Anyone?
|
Reply
Quote
|
|
|