Author Topic: WaveOut  (Read 703 times)

scourab

  • Posts: 4
WaveOut
« on: 26 Feb '12 - 11:26 »
I actually use DX to play music

m_lChannel = BASS_StreamCreateFile(BASSTRUE, VarPtr(DataStore(0)), 0, DataLength, BASS_STREAM_AUTOFREE)
        If (m_lChannel = 0) Then m_lChannel = BASS_MusicLoad(BASSTRUE, VarPtr(DataStore(0)), 0, DataLength, BASS_MUSIC_PRESCAN Or BASS_MUSIC_RAMP Or BASS_MUSIC_SINCINTER Or BASS_MUSIC_POSRESET Or BASS_SAMPLE_FLOAT Or BASS_MUSIC_PT1MOD Or BASS_MUSIC_AUTOFREE Or BASS_MUSIC_STOPBACK, 0)

        If (m_lChannel = 0) Then
        ' free memory
        Erase DataStore()
        End If

I would like to use waveOut for playback what flag i have to modify to deal with waveOut?

Thanks

Scourab

Ionut Cristea

  • Posts: 1545
Re: WaveOut
« Reply #1 on: 26 Feb '12 - 12:12 »
BASS supports only Directsound, ASIO and WASAPI. But you can create your audio renderer by creating streams with BASS_STREAM_DECODE flag and retrieving data from them with BASS_ChannelGetData and pushing to your audio renderer :)

Ionut

scourab

  • Posts: 4
Re: WaveOut
« Reply #2 on: 26 Feb '12 - 12:59 »
Thanks

Any example of this in vb6?


scourab