Examples of drain()


Examples of javax.sound.sampled.SourceDataLine.drain()

      }
     
      // release all audio resources
      targetDataLine.drain();
      targetDataLine.close();
      sourceDataLine.drain();
      sourceDataLine.close();
    }
  }

}
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

            }
        } catch (final IOException e) {
            e.printStackTrace();
            return;
        } finally {
            auline.drain();
            auline.close();
        }

    }
}
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

          nBytesWritten = line.write(data, 0, nBytesRead);
        }

      }
      // Stop
      line.drain();
      line.stop();
      line.close();
      din.close();
    }
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

                }

            }

            // Stop
            line.drain();
            line.stop();
            line.close();
            din.close();
            //96515374
        }
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

      {
      nBytesRead = din.read(data, 0, data.length);
      if (nBytesRead != -1) nBytesWritten = line.write(data, 0, nBytesRead);
      }
      // Stop
      line.drain();
      line.stop();
      line.close();
      din.close();
    }   
  }
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

          {
            nBytesRead = din.read(data, 0, data.length);
            if (nBytesRead != -1) nBytesWritten = line.write(data, 0, nBytesRead);
          }
          // Stop
          line.drain();
          line.stop();
          line.close();
          din.close();
        }      
    }
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

        if (nBytesRead >= 0) {
          auline.write(abData, 0, nBytesRead);
        }
      }
     
      auline.drain();
     
    } catch (Exception e) {
      e.printStackTrace();
    } finally {
      if (auline != null) try { auline.close(); } catch (Exception e1) { }
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

      }
    } catch (IOException e) {
      e.printStackTrace();
      return;
    } finally {
      auline.drain();
      auline.close();
    }
  }
}
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

            }
        } catch (IOException e) {
            e.printStackTrace();
            return;
        } finally {
            auline.drain();
            auline.close();
        }

    }
}
View Full Code Here

Examples of javax.sound.sampled.SourceDataLine.drain()

                    } catch (IOException e) {
                        log.error(
                            "IO-Error while write auline for " + fileName, e);
                        return;
                    } finally {
                        auline.drain();
                        auline.close();
                    }

                }
            });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.