Setting the freq flag at BASS_Init has no effect.

Started by PH Software Tech,

PH Software Tech

Hello,

When I call BASS_Init and set the freq flag to 22050, nothing happens to the sound output quality.
I thought that if I set this flag I could downgrade the output quality, am I right or does this flag nothing to the sound quality?

Hope someone can help me.

Greets,

Peter Hebels (PH Software Technologies)

new guy

I am not sure what might be happening with the init flag but I usually set the frequency on the channel level using the BASS_ChannelSetAttributes function.

I also thought that I would point out that setting the freq to 22050 would only make the playback of the stream slower.

The only way I know really to "downgrade" a music sample is to change it's bitrate which you will have to do before you load the song into bass and stream it unless bass has the ability to encode and decode a sample at the same time which I don't think it has but then again I am the new guy so what do I know eh.

Anyway I hope that helps and good luck.

Irrational86

That frequency is the sample rate at which MOD music files will be played. This frequency has nothing to do with Streams and Samples. To downgrade a Stream file, you have to create a custom stream at the rate you want, and have the original stream in a decoding channel. Then as your custom stream asks for PCM data, you retrieve a chunk from the original stream, downgrade it with your own procedure, and then pass it to the custom stream.