ManagedBass.Gapless 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ManagedBass.Gapless --version 0.1.0                
NuGet\Install-Package ManagedBass.Gapless -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ManagedBass.Gapless" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ManagedBass.Gapless --version 0.1.0                
#r "nuget: ManagedBass.Gapless, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ManagedBass.Gapless as a Cake Addin
#addin nuget:?package=ManagedBass.Gapless&version=0.1.0

// Install ManagedBass.Gapless as a Cake Tool
#tool nuget:?package=ManagedBass.Gapless&version=0.1.0                

BASS_GAPLESS

A gapless playback plugin for BASS with .NET bindings.

bass.dll is required for native projects. ManagedBass is required for .NET projects.

A simple example;

#include <stdio.h>
#include "../bass_gapless/bass_gapless.h"
#include "../bass_gapless/queue.h"

int main(int argc, char **argv) {
	int output_rate = 192000;
	DWORD source_channel_1;
	DWORD source_channel_2;
	DWORD playback_channel;
	BASS_CHANNELINFO channel_info;

	if (!BASS_Init(-1, output_rate, 0, 0, NULL)) {
		return 1;
	}

	if (!BASS_GAPLESS_Init()) {
		return 1;
	}

	if (!BASS_GAPLESS_EnableEvents(event_handler)) {
		printf("Failed to enable GAPLESS events.\n");
		return 1;
	}

	source_channel_1 = BASS_StreamCreateFile(FALSE, "D:\\Source\\Prototypes\\Resources\\01 Botanical Dimensions.flac", 0, 0, BASS_STREAM_DECODE | BASS_SAMPLE_FLOAT);
	if (source_channel_1 == 0) {
		return 1;
	}

	source_channel_2 = BASS_StreamCreateFile(FALSE, "D:\\Source\\Prototypes\\Resources\\02 Outer Shpongolia.flac", 0, 0, BASS_STREAM_DECODE | BASS_SAMPLE_FLOAT);
	if (source_channel_2 == 0) {
		return 1;
	}

	if (!BASS_GAPLESS_ChannelEnqueue(source_channel_1)) {
		return 1;
	}
	if (!BASS_GAPLESS_ChannelEnqueue(source_channel_2)) {
		return 1;
	}

	BASS_ChannelGetInfo(source_channel_1, &channel_info);

	playback_channel = BASS_GAPLESS_StreamCreate(channel_info.freq, channel_info.chans, BASS_SAMPLE_FLOAT, NULL);
	if (playback_channel == 0) {
		return 1;
	}

	if (!BASS_ChannelPlay(playback_channel, FALSE)) {
		return 1;
	}

	do {
		DWORD channel_active = BASS_ChannelIsActive(playback_channel);
		if (channel_active == BASS_ACTIVE_STOPPED) {
			break;
		}

		Sleep(1000);
	} while (TRUE);

	BASS_StreamFree(source_channel_1);
	BASS_StreamFree(source_channel_2);
	BASS_StreamFree(playback_channel);
	BASS_GAPLESS_Free();
	BASS_Free();
}
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 1,172 6/5/2022
0.1.0 917 4/22/2019