Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1026963 // wavSampleRateAndChannels

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2407L/16K).

1  
static Pair<Float, Int> wavSampleRateAndChannels(File f) {
2  
  temp WAVDecoder decoder = new(fileInputStream(f));
3  
  ret pair(decoder.sampleRate, decoder.channels);
4  
}

Author comment

Began life as a copy of #1026944

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026963
Snippet name: wavSampleRateAndChannels
Eternal ID of this version: #1026963/1
Text MD5: d341cc2bfd4bb0b05c1fce31ea05e150
Transpilation MD5: 2b67beb2ca2e7a7c0d5de9bacb90c6b4
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-04 01:42:42
Source code size: 166 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 222 / 306
Referenced in: [show references]