Quantcast

Documentation Center

  • Trial Software
  • Product Updates

BitsPerSample

Specify number of bits sound card uses to represent samples

Description

    Note:   You cannot use the legacy interface on 64–bit MATLAB®. See Session-Based Interface to acquire and generate data.

BitsPerSample can be 8, 16, or any value between 17 and 32. The specified number of bits determines the number of unique values a sample can take on. For example, if BitsPerSample is 8, the sound card represents each sample with 8 bits. This means that each sample is represented by a number from 0 through 255. If BitsPerSample is 16, the sound card represents each sample with 16 bits. This means that each sample is represented by a number from 0 through 65,535.

For older Sound Blaster cards configured for full duplex operation, you might not be able to set BitsPerSample to 16 bits for both the analog input and analog output subsystems. Instead, you need to set one subsystem for 8 bits, and the other subsystem for 16 bits.

    Note   To use the high-resolution (greater than 16 bit) capabilities for some sound cards, you might need to configure BitsPerSample to either 24 or 32 even if your device does not use that number of bits.

Characteristics

Vendor

Sound cards

Usage

AI, AO, common to all channels

Access

Read/write

Data type

Double

Read-only when running

Yes

Values

8, {16}, or 17-32

Represent data with the specified number of bits.

Was this topic helpful?