22 May '13 - 08:28 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3
1  Developments / BASS / Re: Writing custom tags on: 29 Oct '12 - 04:55
I guess that my question was not clear enough,
I know how to work with AudioGenie 3, the problem is seems its development path is dead, so I was looking an alternative in the Bass eco-system or else [in Delphi]
Audio genie is great but I am not sure if someone in the open source world has picked up the support
ReplyReply Reply with quoteQuote
2  Developments / BASS / Writing custom tags on: 26 Oct '12 - 16:17
Hello
I am aware that BASS has some level of support for reading (and may be writing) tags like artist, album , title etc for some audio formats
But are there any add-ons to read/write custom metadata as well
Of course the evil m4a excepted which has proprietary tagging model and is very rigid but flac, wma, ape etc which have a much more logical easier tagging model of type Key-> value
I was using audiogenie, but now it is open source and I think the support for it is moribund.

Thank you
ReplyReply Reply with quoteQuote
3  Developments / BASS / Is it possible to use Bass with streamers like Linn or Logitech on windows on: 26 Oct '12 - 16:10
Hello
Is it possible to send the audio file to be played by a streamer type device (very often UPnP like the linn) or a logitech squeeezebox
within the Bass framework
I played very successfully USB dacs, or what ever windows has a a default device whether direct sound, asio or WASAPI
but I was asked to play via a streamer over the network (I guess I do not have one of those devices )
Any idea where to start please
Regards
PW
ReplyReply Reply with quoteQuote
4  Developments / BASS / How to compute/find the bit depth for an audio file on: 6 Oct '12 - 17:18
Hello
As the sample rate is easy to find, the bit depth is less so at least I have not find a way to do so.
you can have files with sample rates of 44.1 but have a 24 bit depth instead of 16 so they are considered
"High def" or "studio masters" files - I am sure there is a way in bass but how
if you have examples preferably in Delphi
Thanks
Regards
PW
ReplyReply Reply with quoteQuote
5  Developments / BASS / Gapeless playing and cue files on: 24 Jul '12 - 14:10
Hello
Is it possible and are there examples (in Delphi ??) on how to play a entire file (any formats) and have the tracks listed via its cue file.
For classical music or a concert to have end up having gapeless playing but be able to jump to the right "virtual" track

Like in foobar if you drag the cue list in the panel  and have the whole CD in one file, it appears as if you had separates tracks but the music does not have gaps and plays from that one monster file
 Thank you regards
ReplyReply Reply with quoteQuote
6  Developments / BASS / Re: How to play multi-channels (beyond stereo) 5.1 dolby on: 9 Mar '12 - 07:52
The question
Was can one play these file using WASAPI or ASIO ?
and if yes what flag needs to be set on the various init function calls.

Using direct sound, it works I have checked it
Thank you sorry for a poorly formulated question
ReplyReply Reply with quoteQuote
7  Developments / BASS / How to play multi-channels (beyond stereo) 5.1 dolby on: 8 Mar '12 - 08:11
Hi
what are the steps to
init bass
then find out that the file is not stereo and I guess re-init bass to be able to play in WASAPI or asio
 in direct sound it does play
Thanks
PW
ReplyReply Reply with quoteQuote
8  Developments / BASS / Re: 16 bit vs 24 bits flac files on: 28 Feb '12 - 05:04
Thank you Ian
any similar  flags that should be set if one plays via
WASAPI
and
ASIO

regards
PW

ReplyReply Reply with quoteQuote
9  Developments / BASS / 16 bit vs 24 bits flac files on: 26 Feb '12 - 06:37
Hello
Even if the bass lib is initialized as shown on the help file

Example:
Initialize BASS to use the default output device, and a nominal format of 44100hz stereo 16-bit.
BASS_Init(-1, 44100, 0, hwnd, NULL); 

But if a file with higher sample rate comes along, it is played at the right frequency like it updates it self from 44100 to a higher value.
My question is about the bit depth if the file is 24bit / 96000Khz is the bit depth updated automatically as well from 16 to 24 or it is taken at 16.
Forget my ignorance on the internal of Bass audio. it plays but I have to way to check at which bit depth the frequency yes it is shown on the DAC
Thank you



ReplyReply Reply with quoteQuote
10  Developments / BASS / Re: Wasapi BASS_WASAPI_SetVolume does not do anything ? on: 22 Feb '12 - 07:05
Thank you, my apologies for this silly mistake

I did change to True for linear but the behavior now is:

the sound remains unchanged regardless what level I set the volume to and the function returns true

the sound slider on the icon tray does move
but the values do not match
if I set 50% it is set around 62%
if I set 10% it is set around 27%
and as I mentioned the sound volume remains unchanged

I am using an external DAC connected with optical from the sound card if it helps

Regards
PW
ReplyReply Reply with quoteQuote
11  Developments / BASS / Re: Wasapi BASS_WASAPI_SetVolume does not do anything ? on: 21 Feb '12 - 05:35
False and the bass error is BASS_ERROR_ILLPARAM  
whether from a slider which at start gives 0.956 so I hard coded to 0.5 to be sure in both cases you get error 20 which is BASS_ERROR_ILLPARAM
I could understand if it was BASS_ERROR_NOTAVAIL although all output device should be volume controlled by the OS in an ideal world
This time it should not be a C vs. Delphi problem a float is a float ?

the sound panel was 100% and still is

Best
PW



ReplyReply Reply with quoteQuote
12  Developments / BASS / Wasapi BASS_WASAPI_SetVolume does not do anything ? on: 20 Feb '12 - 16:59
Hello
In direct sound: Bass_setVolume does work
In ASIO: BASS_ASIO_ChannelSetVolume does work
well in WASAPI: BASS_WASAPI_SetVolume does not do anything

I am using delphi, as an example
var
OK : boolean
Vol : single;
Vol := 0.5;
OK := BOOL BASS_WASAPI_SetVolume(False, // linear,
                                                     Vol );
should halve the sound , but nothing happend even if set to 0 or any values
And I would hate to have to use a mixer, that is the whole point is not it?
Or I am missing something.
Thank you
Regards
PW

 
ReplyReply Reply with quoteQuote
13  Developments / BASS / Re: WASAPI Crash at the end of a track if left alone to play on: 27 Jan '12 - 03:50
Delphi would not consider them the same
-1 does not exits for non negative integer in C you can get away with it but not in pascal
but I had replaced by c: longint and it works

I have tried  also DW_ERROR  with a c defined as Bass.dWord and it works.
thanks


ReplyReply Reply with quoteQuote
14  Developments / BASS / Wasapi device id and USB on: 25 Jan '12 - 16:36
Hello
I have in Win 7 disabled all other output to have a USB DAC connected when I enumerate
all devices it does not find any with this routine. now if I initialise
 BASS_ChannelGetInfo(oStreamID, ci);
  if not BASS_WASAPI_Init(oDeviceID, ci.freq, ci.chans,
    BASS_WASAPI_AUTOFORMAT or BASS_WASAPI_BUFFER or
      BASS_WASAPI_EXCLUSIVE, 0.4, 0.05, @WasapiProc, nil) then

with device oDeviceID at -1 it plays How to detect that Dac as an output source or the FindDevice is wrong
// ==============================================================================
function TBassPlayerWASAPI.FindDeviceId: Integer;
// ==============================================================================
const
  MAXDEVICES = 9;
var
  I: Integer;
begin
  Result := -1;
  for I := 0 to MAXDEVICES do
  begin
    // exit when the list of devices is exaushted
    if not BASS_WASAPI_GetDeviceInfo(I, oDeviceInfo) then
      break;
    if ((oDeviceInfo.flags and BASS_DEVICE_DEFAULT) = (BASS_DEVICE_DEFAULT))
      and ((oDeviceInfo.flags and BASS_DEVICE_INPUT) <> BASS_DEVICE_INPUT)
      and (oDeviceInfo.flags and BASS_DEVICE_ENABLED = BASS_DEVICE_ENABLED) then
    begin
      Result := I;
      break // we found the correct
    end
  end;
end;
ReplyReply Reply with quoteQuote
15  Developments / BASS / Re: WASAPI Crash at the end of a track if left alone to play on: 25 Jan '12 - 15:23
Here is my Callback - Do not give me too much credit , I copied yours from the example given I am learning wasapi I do not know yet what I am doing

  // ------------------------------------------------------------------------------
function WasapiProc(buffer: pointer; length: dword; user: pointer): dword;
  stdcall;
// ------------------------------------------------------------------------------
var
  c: dword;
begin
  c := Bass_ChannelGetData(oMusic, buffer, length);
  if (c = -1) then
    c := 0;
  Result := c;
end;

it could be that c is declared as dword which does not take negative values and therefore cannot trap for -1

Thanks regards
PW
ReplyReply Reply with quoteQuote
16  Developments / BASS / WASAPI Crash at the end of a track if left alone to play on: 24 Jan '12 - 06:07
Hello
If all has been prepared the the device id, input stream, the WASAPI initialization:
To play a file is simply BASS_WASAPI_Start() and it plays

the problem if untended at the end of the track it crashes (big windows crash)
in BASS or BASSASIO the program not dies in the end but the music stops

Is there a way to have a notification without resorting to the loop in the example provided contest.exe
which has to check  BASS_ChannelIsActive(mixer) all the time taking a lot of resources and preventing the user to do other things
and I do not want to create thread for this.

Thank you regards
PW

ReplyReply Reply with quoteQuote
17  Developments / BASS / Re: How to Play an audio file using BASSWASAPI on: 16 Jan '12 - 17:40
Thank you so much I will check it out
PW
ReplyReply Reply with quoteQuote
18  Developments / BASS / How to Play an audio file using BASSWASAPI on: 16 Jan '12 - 16:14
Hello
Is there somewhere a simple example of sample code on how to play an audio file using ASAPI and Bass in Delphi preferably please
The help is just a collection of function calls but no order on how  to use them
Thank you
PW
ReplyReply Reply with quoteQuote
19  Developments / BASS / Static when a file is played ASIO and reside on a network device on: 27 Aug '11 - 04:20
Hello
I have created a Windows app which can use ASIO output or not.
No ASIO: All files whether local, USB drive or attached on a NAS do play well
ASIO:  Local and USB play well, NAS or a server attached I get static random noise
I have checked the network cables it is 1Gig switch with Cat6 cables, changed cables etc same
The problem is more acute with High definition files (more data ) and varies from computer to computer too

I have tested with foobar in asio plug-in it does it too but less than bass lib
Could it be conflict between some network and sound adaptors?

Please any tips ideas welcome, I am lost here
Thanks & regards
PW

ReplyReply Reply with quoteQuote
20  Developments / BASS / Re: Copying the first N seconds from one file to another mp3 or wav file on: 22 Jun '11 - 16:25
Thank you
I managed to do it with your help and some old code I had
The only think is when it stops I would like to have the sound fade away because when I stop I get a crack which is not nice for any speakers

I tried BASS_ChannelSlideAttribute(channel, BASS_ATTRIB_VOL, 0, 1000);
that did not do anything
here is my code
oStreamID is the input channel
Err is the encoding channel

 BASS_ChannelPlay(oStreamID, False);
  try
    while (bass.BASS_ChannelIsActive(oStreamID) > 0) do
    begin
      bass.BASS_ChannelGetData(oStreamID, @buf, sizeof(buf));
     // fseconds is the seconds I want to keep from the beggining or the file
     if (ComputeRunningTimeInSeconds > fSeconds) then
        begin
          BASS_Encode_SetPaused( Err, true);
          BASS_ChannelPause(oStreamID);
          break;
        end;
     end;
    bassenc.BASS_Encode_Stop(Err);
    bassenc.BASS_Encode_Stop(oStreamID);
  finally
    bass.BASS_StreamFree(Err);
    bass.BASS_StreamFree(oStreamID);
  end;
Thank you
PW
ReplyReply Reply with quoteQuote
Pages: [1] 2 3
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines