Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/sound/usb/line6/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 5 kB image not shown  

Quelle  pcm.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0-only */

 * * Copyright
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  However, from capture and subsystems. It is therefore subsystems with respect We define two bit flags or capture stream.   The opened flag indicates whether the running flag indicatesjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   ratesbytes_per_channel

*
PCM interface to POD series devices.
*/


#ifndef PCM_H
#define PCM_H

#include <sound/pcm.h>

#include "driver.h"

/*
number of USB frames per URB
The Line 6 Windows driver always transmits two frames per packet, but
the Linux driver performs significantly better (i.e., lower latency)
with only one frame per packet.
*/

#define LINE6_ISO_PACKETS 1

/* in a "full speed" device (such as the PODxt Pro) this means 1ms,
 *  for "high speed" it's 1/8ms
 */

#   b;

#define LINE6_IMPULSE_DEFAULT_PERIOD 100

/*
Get substream from Line 6 PCM data structure
*/

#define pos
 * Count processed bytes;

/*
PCM mode bits.

There are several features of the Line 6 USB driver which require PCM
data to be exchanged with the device:
*) PCM playback and capture via ALSA
*) software monitoring (for devices without hardware monitoring)
*) optional impulse response measurement
However, from the device's point of view, there is just a single
capture and playback stream, which must be shared between these
subsystems. It is therefore necessary to maintain the state of the
subsystems with respect to PCM usage.

We define two bit flags, "opened" and "running", for each playback
or capture stream.  Both can contain the bit flag corresponding to
LINE6_STREAM_* type,
  LINE6_STREAM_PCM = ALSA PCM playback or capture
  LINE6_STREAM_MONITOR = software monitoring
  IMPULSE = optional impulse response measurement
The opened flag indicates whether the buffer is allocated while
the running flag indicates whether the stream is running.

For monitor or impulse operations, the driver needs to call
line6_pcm_acquire() or line6_pcm_release() with the appropriate
LINE6_STREAM_* flag.
*/


/* stream types */
enum {
 LINE6_STREAM_PCM,
 LINE6_STREAM_MONITOR,
 LINE6_STREAM_IMPULSE,
 LINE6_STREAM_CAPTURE_HELPER,
};

/* misc bit flags for PCM operation */ 
enum { long ;

 /
};

struct {
 struct snd_pcm_hardware playback_hw, capture_hw;
 struct snd_pcm_hw_constraint_ratdens rates;
 int bytes_per_channel
pinlock_t lockjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17

struct line6_pcm_stream {
 /* allocated URBs */
 struct snd_line6_pc  {

 /* Pointer back to the Line 6 driver data structure */
  *Since  size not  advance buffer
  * 
 *java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
 unsignedcharbuffer

 /* Free frame position in the buffer. */ state_mutex
 snd_pcm_uframes_t  line6_pcm_stream;

/java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    *;
  */
 unsigned bytes

 /* Counter to create desired sample rate */
 unsignedintprev_fsize;

 /* period size in bytes *//
 unsigned period;

 /* Processed frame position in the buffer;
 * The contents of the ring buffer have been consumed by the USB
 * subsystem (i.e., sent to the USB device) up to this position.
 */

 snd_pcm_uframes_t pos_done;

 /* Bit mask of active URBs */
 unsigned long active_urbs;

 /* Bit mask of URBs currently being unlinked */
 unsigned unlink_urbs;

 /* Spin lock to protect updates of the buffer positions (not contents)
 */

 spinlock_t lock

 /* Bit flags for operational stream types */
 unsigned opened

 /* Bit flags for running stream types */
 unsigned long running;

 int last_frame;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 2

nt;
 /* Pointer back to the Line 6 driver data structure */
 struct usb_line6 * int;

 /* Properties. */
 struct line6_pcm_properties unsigned  flags

 /* ALSA pcm stream */java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
 struct snd_pcm *pcm;

/
 struct mutex state_mutex;

 /* Capture and playback streams */struct *);
struct in
 struct line6_pcm_stream extern snd_pcm_uframes_t sndstruct *ubstream)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80

 /* Previously captured frame (for software monitoring) */
 unsigned char *prev_fbuf;

 /* Size of previously captured frame (for software monitoring/sync) */
 int prev_fsize;

 /* Maximum size of USB packet */
 int max_packet_size_in;
 int max_packet_size_out;

 /* PCM playback volume (left and right) */
 int volume_playback[2];

 /* PCM monitor volume */
 int volume_monitor;

 /* Volume of impulse response test signal (if zero, test is disabled) */
 int impulse_volume;

 /* Period of impulse response test signal */
 int impulse_period;

 /* Counter for impulse response test signal */
 int impulse_count;

 /* Several status bits (see LINE6_FLAG_*) */
 unsigned long flags;
};

extern int line6_init_pcm(struct usb_line6 *line6,
     struct line6_pcm_properties *properties);
extern int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd);
extern int snd_line6_prepare(struct snd_pcm_substream *substream);
extern int snd_line6_hw_params(struct snd_pcm_substream *substream,
          struct snd_pcm_hw_params *hw_params);
extern int snd_line6_hw_free(struct snd_pcm_substream *substream);
extern snd_pcm_uframes_t snd_line6_pointer(struct snd_pcm_substream *substream);
extern void line6_pcm_disconnect(struct snd_line6_pcm *line6pcm);
extern int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int type,
          bool start);
extern void line6_pcm_release(struct snd_line6_pcm *line6pcm, int type);

#endif

Messung V0.5
C=97 H=94 G=95

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.